[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] i386/kvm: expose HV_CPUID_ENLIGHTMENT_INFO.EAX
From: |
Roman Kagan |
Subject: |
Re: [Qemu-devel] [PATCH] i386/kvm: expose HV_CPUID_ENLIGHTMENT_INFO.EAX and HV_CPUID_NESTED_FEATURES.EAX as feature words |
Date: |
Tue, 27 Nov 2018 13:10:14 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Mon, Nov 26, 2018 at 02:59:58PM +0100, Vitaly Kuznetsov wrote:
> It was found that QMP users of QEMU (e.g. libvirt) may need
> HV_CPUID_ENLIGHTMENT_INFO.EAX/HV_CPUID_NESTED_FEATURES.EAX information. In
> particular, 'hv_tlbflush' and 'hv_evmcs' enlightenments are only exposed in
> HV_CPUID_ENLIGHTMENT_INFO.EAX.
>
> HV_CPUID_NESTED_FEATURES.EAX is exposed for two reasons: convenience
> (we don't need to export it from hyperv_handle_properties() and as
> future-proof for Enlightened MSR-Bitmap, PV EPT invalidation and
> direct virtual flush features.
>
> Signed-off-by: Vitaly Kuznetsov <address@hidden>
> ---
> target/i386/cpu.c | 30 +++++++++++++++++
> target/i386/cpu.h | 2 ++
> target/i386/kvm.c | 85 +++++++++++++++++++++++++----------------------
> 3 files changed, 77 insertions(+), 40 deletions(-)
Reviewed-by: Roman Kagan <address@hidden>