Re: [Xen-devel] [PATCH RFC 10/31] xen/x86: Calculate HVM featureset

2015-12-22 Thread Andrew Cooper
On 22/12/15 17:11, Jan Beulich wrote: On 16.12.15 at 22:24, wrote: >> @@ -22,6 +24,27 @@ void __init calculate_featuresets(void) >> >> /* Unconditionally claim to be able to set the hypervisor bit. */ >> __set_bit(X86_FEATURE_HYPERVISOR, pv_featureset); >> + >> +/* HVM feature

Re: [Xen-devel] [PATCH RFC 10/31] xen/x86: Calculate HVM featureset

2015-12-22 Thread Jan Beulich
>>> On 16.12.15 at 22:24, wrote: > @@ -22,6 +24,27 @@ void __init calculate_featuresets(void) > > /* Unconditionally claim to be able to set the hypervisor bit. */ > __set_bit(X86_FEATURE_HYPERVISOR, pv_featureset); > + > +/* HVM featureset. */ > +if ( hvm_enabled ) > +{ >

[Xen-devel] [PATCH RFC 10/31] xen/x86: Calculate HVM featureset

2015-12-16 Thread Andrew Cooper
For HVM guests, there are two different featuresets, depending on whether hap or shadow mode is used. HVM Shadow guests are strictly more capable than PV guests, and HVM HAP are strictly more capable than HVM Shadow; this is represented in the way the HVM shadow and HAP masks are expressed. Signe