From patchwork Mon Nov 1 13:22:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 1549166 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=GHPmszAm; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HjYfr3W5kz9sVc for ; Tue, 2 Nov 2021 00:24:52 +1100 (AEDT) Received: from localhost ([::1]:38822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhXIw-0006Uk-5f for incoming@patchwork.ozlabs.org; Mon, 01 Nov 2021 09:24:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhXHb-0005Gh-OS for qemu-devel@nongnu.org; Mon, 01 Nov 2021 09:23:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhXHY-0004vK-8h for qemu-devel@nongnu.org; Mon, 01 Nov 2021 09:23:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635772999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RZLftubQZhcRywV/L4ITsBdUbnfH9UsZVxjpxPe8d9E=; b=GHPmszAmB0QoBnLwSC4r27mwqmfcG1tdzg+ELZ+Npz7csAiKqtkxy2wxh/v4WG41GUrZ8P 9U4UuAm5m3J6LJNXDqb8/+rMehiXN3D4striI3WeCy79D+fgB7ERt8Mx/58yruhwBmkdXy DLgPcIN1z2gqCiKLootYwBwYoM0Tou0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-284-YrwGze3yM1qCJwoCR6itjw-1; Mon, 01 Nov 2021 09:23:16 -0400 X-MC-Unique: YrwGze3yM1qCJwoCR6itjw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7C138026AD; Mon, 1 Nov 2021 13:23:14 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.194.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 10BDD60C0F; Mon, 1 Nov 2021 13:23:04 +0000 (UTC) From: Maxim Levitsky To: qemu-devel@nongnu.org Subject: [PATCH v2 0/3] KVM: qemu patches for few KVM features I developed Date: Mon, 1 Nov 2021 15:22:57 +0200 Message-Id: <20211101132300.192584-1-mlevitsk@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Received-SPF: pass client-ip=170.10.133.124; envelope-from=mlevitsk@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.734, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Marcelo Tosatti , Maxim Levitsky , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" These patches implement the qemu side logic to support the KVM features I developed recently. All 3 patches are for features that are accepted upstream in KVM. V2: rebased and fixed patch 2 to compile without kvm Best regards, Maxim Levitsky Maxim Levitsky (3): KVM: use KVM_{GET|SET}_SREGS2 when supported. gdbstub: implement NOIRQ support for single step on KVM KVM: SVM: add migration support for nested TSC scaling accel/kvm/kvm-all.c | 30 +++++++++++ gdbstub.c | 62 +++++++++++++++++---- include/sysemu/kvm.h | 19 +++++++ target/i386/cpu.c | 5 ++ target/i386/cpu.h | 7 +++ target/i386/kvm/kvm.c | 122 +++++++++++++++++++++++++++++++++++++++++- target/i386/machine.c | 52 ++++++++++++++++++ 7 files changed, 284 insertions(+), 13 deletions(-)