Commit d7b14a86 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Paolo Bonzini

KVM: selftests: Sync 'struct hv_vp_assist_page' definition with hyperv-tlfs.h

'struct hv_vp_assist_page' definition doesn't match TLFS. Also, define
'struct hv_nested_enlightenments_control' and use it instead of opaque
'__u64'.
Reviewed-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221101145426.251680-40-vkuznets@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 1ad51c0c
...@@ -20,14 +20,26 @@ ...@@ -20,14 +20,26 @@
extern bool enable_evmcs; extern bool enable_evmcs;
struct hv_nested_enlightenments_control {
struct {
__u32 directhypercall:1;
__u32 reserved:31;
} features;
struct {
__u32 reserved;
} hypercallControls;
} __packed;
/* Define virtual processor assist page structure. */
struct hv_vp_assist_page { struct hv_vp_assist_page {
__u32 apic_assist; __u32 apic_assist;
__u32 reserved; __u32 reserved1;
__u64 vtl_control[2]; __u64 vtl_control[3];
__u64 nested_enlightenments_control[2]; struct hv_nested_enlightenments_control nested_control;
__u32 enlighten_vmentry; __u8 enlighten_vmentry;
__u8 reserved2[7];
__u64 current_nested_vmcs; __u64 current_nested_vmcs;
}; } __packed;
struct hv_enlightened_vmcs { struct hv_enlightened_vmcs {
u32 revision_id; u32 revision_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment