Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-03 Thread Boris Ostrovsky
On 02/03/2016 10:05 AM, Roger Pau Monné wrote: El 3/2/16 a les 15:30, Boris Ostrovsky ha escrit: On 02/03/2016 03:43 AM, Roger Pau Monné wrote: El 3/2/16 a les 1:17, Andrew Cooper ha escrit: On 02/02/2016 23:30, Boris Ostrovsky wrote: I think for now I mostly care about APIC and for that I c

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-03 Thread Roger Pau Monné
El 3/2/16 a les 15:30, Boris Ostrovsky ha escrit: > On 02/03/2016 03:43 AM, Roger Pau Monné wrote: >> El 3/2/16 a les 1:17, Andrew Cooper ha escrit: >>> On 02/02/2016 23:30, Boris Ostrovsky wrote: >>> I think for now I mostly care about APIC and for that I can use HW CPUID bit (which I be

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-03 Thread Boris Ostrovsky
On 02/03/2016 09:37 AM, Andrew Cooper wrote: On 03/02/16 14:30, Boris Ostrovsky wrote: One might say that in Linux we have APIC even for PV guests --- we provide PV APIC ops. That's what I am using as justification for stating that the HVMlite guest has APIC to force-set X86_FEATURE_APIC bit. S

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-03 Thread Andrew Cooper
On 03/02/16 14:30, Boris Ostrovsky wrote: > On 02/03/2016 03:43 AM, Roger Pau Monné wrote: >> El 3/2/16 a les 1:17, Andrew Cooper ha escrit: >>> On 02/02/2016 23:30, Boris Ostrovsky wrote: >>> I think for now I mostly care about APIC and for that I can use HW CPUID bit (which I believe is

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-03 Thread Boris Ostrovsky
On 02/03/2016 03:43 AM, Roger Pau Monné wrote: El 3/2/16 a les 1:17, Andrew Cooper ha escrit: On 02/02/2016 23:30, Boris Ostrovsky wrote: I think for now I mostly care about APIC and for that I can use HW CPUID bit (which I believe is cleared for HVMlite guests). The APIC bit in cpuid is magi

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-03 Thread Roger Pau Monné
El 3/2/16 a les 1:17, Andrew Cooper ha escrit: > On 02/02/2016 23:30, Boris Ostrovsky wrote: >> On 02/02/2016 06:22 PM, Andrew Cooper wrote: >>> On 02/02/2016 23:17, Boris Ostrovsky wrote: Hypervisor may choose which features to emulate for HVMlite guests. Guest will query the HVM CPUID l

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-02 Thread Tian, Kevin
> From: Boris Ostrovsky > Sent: Wednesday, February 03, 2016 7:17 AM > To: jbeul...@suse.com; andrew.coop...@citrix.com; k...@xen.org > Cc: Boris Ostrovsky; roger@citrix.com; david.vra...@citrix.com; > xen-devel@lists.xen.org > Subject: [Xen-devel] [PATCH] x86/hvm: Provid

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-02 Thread Andrew Cooper
On 02/02/2016 23:30, Boris Ostrovsky wrote: > On 02/02/2016 06:22 PM, Andrew Cooper wrote: >> On 02/02/2016 23:17, Boris Ostrovsky wrote: >>> Hypervisor may choose which features to emulate for HVMlite guests. >>> Guest will query the HVM CPUID leaf to find out what is available. >>> >>> Signed-off

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-02 Thread Boris Ostrovsky
On 02/02/2016 06:22 PM, Andrew Cooper wrote: On 02/02/2016 23:17, Boris Ostrovsky wrote: Hypervisor may choose which features to emulate for HVMlite guests. Guest will query the HVM CPUID leaf to find out what is available. Signed-off-by: Boris Ostrovsky Roger also submitted a patch to do thi

Re: [Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-02 Thread Andrew Cooper
On 02/02/2016 23:17, Boris Ostrovsky wrote: > Hypervisor may choose which features to emulate for HVMlite guests. > Guest will query the HVM CPUID leaf to find out what is available. > > Signed-off-by: Boris Ostrovsky Roger also submitted a patch to do this. However, it is not appropriate, so wa

[Xen-devel] [PATCH] x86/hvm: Provide list of emulated features in HVM CPUID leaf

2016-02-02 Thread Boris Ostrovsky
Hypervisor may choose which features to emulate for HVMlite guests. Guest will query the HVM CPUID leaf to find out what is available. Signed-off-by: Boris Ostrovsky --- Another option to expose this is via features interface. The advantage of using cpuid is that we don't need to setup hypercal