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

2024-01-03 Thread kirill . shutemov
On Thu, Dec 28, 2023 at 11:24:21AM -0800, Alexey Makhalov wrote: > 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

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

2023-12-19 Thread kirill . shutemov
On Tue, Dec 19, 2023 at 04:27:51PM -0800, Alexey Makhalov wrote: > > > On 12/19/23 3:23 PM, kirill.shute...@linux.intel.com wrote: > > On Tue, Dec 19, 2023 at 01:57:51PM -0800, Alexey Makhalov wrote: > > > diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c > > > index

Re: [PATCH v3 2/6] x86/vmware: Introduce vmware_hypercall API

2023-12-19 Thread kirill . shutemov
On Tue, Dec 19, 2023 at 04:17:40PM -0800, Alexey Makhalov wrote: > > > On 12/19/23 3:20 PM, kirill.shute...@linux.intel.com wrote: > > On Tue, Dec 19, 2023 at 01:57:47PM -0800, Alexey Makhalov wrote: > > > +static inline > > > +unsigned long vmware_hypercall1(unsigned long cmd, unsigned long

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

2023-12-19 Thread kirill . shutemov
On Tue, Dec 19, 2023 at 01:57:51PM -0800, Alexey Makhalov wrote: > diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c > index 3aa1adaed18f..ef07ab7a07e1 100644 > --- a/arch/x86/kernel/cpu/vmware.c > +++ b/arch/x86/kernel/cpu/vmware.c > @@ -428,6 +428,30 @@ static bool __init

Re: [PATCH v3 2/6] x86/vmware: Introduce vmware_hypercall API

2023-12-19 Thread kirill . shutemov
On Tue, Dec 19, 2023 at 01:57:47PM -0800, Alexey Makhalov wrote: > +static inline > +unsigned long vmware_hypercall1(unsigned long cmd, unsigned long in1) ... > +static inline > +unsigned long vmware_hypercall3(unsigned long cmd, unsigned long in1, > + uint32_t *out1,