[PATCH] x86/vmware: Add TDX hypercall support

2023-12-07 Thread Alexey Makhalov
From: Alexey Makhalov VMware hypercalls use I/O port, VMCALL or VMMCALL instructions. Add __tdx_hypercall path to support TDX guests. No change in high bandwidth hypercalls, as only low bandwidth ones are supported for TDX guests. Co-developed-by: Tim Merrifield Signed-off-by: Tim Merrifield

Re: [PATCH] x86/vmware: Add TDX hypercall support

2023-12-07 Thread Alexey Makhalov
On 12/7/23 9:12 AM, Dave Hansen wrote: On 12/5/23 23:15, Alexey Makhalov wrote: +#ifdef CONFIG_INTEL_TDX_GUEST +/* Export tdx hypercall and allow it only for VMware guests. */ +void vmware_tdx_hypercall_args(struct tdx_module_args *args) +{ + if (hypervisor_is_type(X86_HYPER_VMWARE)) +

Re: [PATCH] x86/vmware: Add TDX hypercall support

2023-12-07 Thread Dave Hansen
On 12/5/23 23:15, Alexey Makhalov wrote: > +#ifdef CONFIG_INTEL_TDX_GUEST > +/* Export tdx hypercall and allow it only for VMware guests. */ > +void vmware_tdx_hypercall_args(struct tdx_module_args *args) > +{ > + if (hypervisor_is_type(X86_HYPER_VMWARE)) > + __tdx_hypercall(args);

[PATCH] x86/vmware: Add TDX hypercall support

2023-12-05 Thread Alexey Makhalov
From: Alexey Makhalov VMware hypercalls use I/O port, VMCALL or VMMCALL instructions. Add __tdx_hypercall path to support TDX guests. No change in high bandwidth hypercalls, as only low bandwidth ones are supported for TDX guests. Co-developed-by: Tim Merrifield Signed-off-by: Tim Merrifield