Re: [PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-04-02 Thread Jan Beulich
On 28.03.2024 11:57, George Dunlap wrote: > On Thu, Mar 28, 2024 at 6:44 AM Jan Beulich wrote: >>> As to why to have each vendor independent code check for HAP -- there >>> are in fact two implementations of the code; it's nice to be able to >>> look in one place for each implementation to determi

Re: [PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-03-28 Thread Jan Beulich
On 28.03.2024 11:57, George Dunlap wrote: > On Thu, Mar 28, 2024 at 6:44 AM Jan Beulich wrote: > --- a/xen/arch/x86/hvm/nestedhvm.c > +++ b/xen/arch/x86/hvm/nestedhvm.c > @@ -150,6 +150,16 @@ static int __init cf_check nestedhvm_setup(void) > __clear_bit(0x80, shadow_io_bitmap

Re: [PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-03-28 Thread George Dunlap
On Thu, Mar 28, 2024 at 6:44 AM Jan Beulich wrote: > > As to why to have each vendor independent code check for HAP -- there > > are in fact two implementations of the code; it's nice to be able to > > look in one place for each implementation to determine the > > requirements. Additionally, it w

Re: [PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-03-27 Thread Jan Beulich
On 27.03.2024 18:01, George Dunlap wrote: > On Mon, Mar 18, 2024 at 2:17 PM Jan Beulich wrote: >> On 13.03.2024 13:24, George Dunlap wrote: >>> --- a/xen/arch/x86/domain.c >>> +++ b/xen/arch/x86/domain.c >>> @@ -673,6 +673,12 @@ int arch_sanitise_domain_config(struct >>> xen_domctl_createdomain *

Re: [PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-03-27 Thread George Dunlap
On Mon, Mar 18, 2024 at 2:17 PM Jan Beulich wrote: > > On 13.03.2024 13:24, George Dunlap wrote: > > In order to make implementation and testing tractable, we will require > > specific host functionality. Add a nested_virt bit to hvm_funcs.caps, > > and return an error if a domain is created with

Re: [PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-03-18 Thread Jan Beulich
On 13.03.2024 13:24, George Dunlap wrote: > In order to make implementation and testing tractable, we will require > specific host functionality. Add a nested_virt bit to hvm_funcs.caps, > and return an error if a domain is created with nested virt and this > bit isn't set. Create VMX and SVM cal

[PATCH v2 3/3] svm/nestedsvm: Introduce nested capabilities bit

2024-03-13 Thread George Dunlap
In order to make implementation and testing tractable, we will require specific host functionality. Add a nested_virt bit to hvm_funcs.caps, and return an error if a domain is created with nested virt and this bit isn't set. Create VMX and SVM callbacks to be executed from start_nested_svm(), whi