Re: [PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-06-06 Thread Alexey Makhalov
On 6/3/24 10:58 AM, Borislav Petkov wrote: On Wed, May 29, 2024 at 05:44:32PM -0700, Alexey Makhalov wrote: While most of the vmware_hypercall callers are executed after alternative patching applied, there are small amount of hypercalls running before that. Only for them we have the logic of

Re: [PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-06-03 Thread Borislav Petkov
On Wed, May 29, 2024 at 05:44:32PM -0700, Alexey Makhalov wrote: > While most of the vmware_hypercall callers are executed after alternative > patching applied, there are small amount of hypercalls running before that. > Only for them we have the logic of analyzing vmware_hypercall_mode as a > defa

Re: [PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-05-29 Thread Alexey Makhalov
On 5/27/24 10:07 AM, Borislav Petkov wrote: On Thu, May 23, 2024 at 12:14:39PM -0700, Alexey Makhalov wrote: +#define VMWARE_HYPERCALL \ + ALTERNATIVE_3("", \ + "jmp .Lport_call

Re: [PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-05-27 Thread Borislav Petkov
On Thu, May 23, 2024 at 12:14:39PM -0700, Alexey Makhalov wrote: > +#define VMWARE_HYPERCALL \ > + ALTERNATIVE_3("", \ > + "jmp .Lport_call%=", X86_FEATURE_HYPERVISOR, \ > +

[PATCH v10 1/8] x86/vmware: Introduce VMware hypercall API

2024-05-23 Thread Alexey Makhalov
Introduce vmware_hypercall family of functions. It is a common implementation to be used by the VMware guest code and virtual device drivers in architecture independent manner. The API consists of vmware_hypercallX and vmware_hypercall_hb_{out,in} set of functions by analogy with KVM hypercall API