From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzuFV-0003Th-Tc for qemu-devel@nongnu.org; Tue, 11 Sep 2018 21:47:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzuFR-0005wW-4O for qemu-devel@nongnu.org; Tue, 11 Sep 2018 21:47:21 -0400 Received: from mga07.intel.com ([134.134.136.100]:28623) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzuFQ-0005Pa-JN for qemu-devel@nongnu.org; Tue, 11 Sep 2018 21:47:16 -0400 Message-ID: <1536716741.4003.2.camel@linux.intel.com> From: Robert Hoo Date: Wed, 12 Sep 2018 09:45:41 +0800 In-Reply-To: <1535888767-154680-1-git-send-email-robert.hu@linux.intel.com> References: <1535888767-154680-1-git-send-email-robert.hu@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 0/3] x86: QEMU side support on MSR based features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, thomas.lendacky@amd.com Cc: robert.hu@intel.com, robert.hu@linux.intel.com, qemu-devel@nongnu.org On Sun, 2018-09-02 at 19:46 +0800, Robert Hoo wrote: Ping ... :-) > KVM side has added the framework (kvm.git:d1d93fa90) to support MSR > based features. > Here is the QEMU part, including data structure changes/expanding, > referring > functions changes, and the implementations on  > KVM_GET_MSR_FEATURE_INDEX_LIST and KVM_GET_MSRS system ioctl. > > Changelog: > v4: > Re-organize patch set to conform to request of individually > build pass. > Add KVM capability check for KVM_GET_MSR_INDEX_LIST before > fetch. > Special treatment for MSR_IA32_ARCH_CAPABILITIES.RSBA. > Use more convenient glib wrapper (g_strdup_printf) instead of > native > (sprintf). > > v3: patch 2&3 in v2 are corrupted. Re-format patches. > v2: coding style changes to pass ./scripts/checkpatch.pl. > > Robert Hoo (3): >   x86: Data structure changes to support MSR based features >   kvm: Add support to KVM_GET_MSR_FEATURE_INDEX_LIST and      >     KVM_GET_MSRS system ioctl >   x86: define a new MSR based feature word -- >     FEATURE_WORDS_ARCH_CAPABILITIES > >  include/sysemu/kvm.h |   2 + >  target/i386/cpu.c    | 200 +++++++++++++++++++++++++++++++++++++-- > ------------ >  target/i386/cpu.h    |  12 ++++ >  target/i386/kvm.c    |  72 +++++++++++++++++++ >  4 files changed, 233 insertions(+), 53 deletions(-) >