mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86: move viridian_guest_os_id_msr to hyperv-tlfs.h
Suggested-by: Paul Durrant <pdurrant@amazon.com> Signed-off-by: Wei Liu <liuwe@microsoft.com> Reviewed-by: Paul Durrant <paul@xen.org>
This commit is contained in:
1 parent
bb2aa33c2a
commit
9520876662
3 files changed
+17
-16
No files matched your search
@@ -218,7 +218,7 @@ void cpuid_viridian_leaves(const struct vcpu *v, uint32_t leaf,
|
||||
|
||||
static void dump_guest_os_id(const struct domain *d)
|
||||
{
|
||||
const union viridian_guest_os_id_msr *goi;
|
||||
const union hv_guest_os_id *goi;
|
||||
|
||||
goi = &d->arch.hvm.viridian->guest_os_id;
|
||||
|
||||
|
||||
@@ -327,6 +327,19 @@ struct ms_hyperv_tsc_page {
|
||||
*/
|
||||
|
||||
#define HV_LINUX_VENDOR_ID 0x8100
|
||||
union hv_guest_os_id
|
||||
{
|
||||
uint64_t raw;
|
||||
struct
|
||||
{
|
||||
uint64_t build_number:16;
|
||||
uint64_t service_pack:8;
|
||||
uint64_t minor:8;
|
||||
uint64_t major:8;
|
||||
uint64_t os:8;
|
||||
uint64_t vendor:16;
|
||||
};
|
||||
};
|
||||
|
||||
struct hv_reenlightenment_control {
|
||||
__u64 vector:8;
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#ifndef __ASM_X86_HVM_VIRIDIAN_H__
|
||||
#define __ASM_X86_HVM_VIRIDIAN_H__
|
||||
|
||||
#include <asm/guest/hyperv-tlfs.h>
|
||||
|
||||
union viridian_page_msr
|
||||
{
|
||||
uint64_t raw;
|
||||
@@ -83,20 +85,6 @@ struct viridian_vcpu
|
||||
uint64_t crash_param[5];
|
||||
};
|
||||
|
||||
union viridian_guest_os_id_msr
|
||||
{
|
||||
uint64_t raw;
|
||||
struct
|
||||
{
|
||||
uint64_t build_number:16;
|
||||
uint64_t service_pack:8;
|
||||
uint64_t minor:8;
|
||||
uint64_t major:8;
|
||||
uint64_t os:8;
|
||||
uint64_t vendor:16;
|
||||
};
|
||||
};
|
||||
|
||||
struct viridian_time_ref_count
|
||||
{
|
||||
unsigned long flags;
|
||||
@@ -112,7 +100,7 @@ struct viridian_time_ref_count
|
||||
|
||||
struct viridian_domain
|
||||
{
|
||||
union viridian_guest_os_id_msr guest_os_id;
|
||||
union hv_guest_os_id guest_os_id;
|
||||
union viridian_page_msr hypercall_gpa;
|
||||
struct viridian_time_ref_count time_ref_count;
|
||||
struct viridian_page reference_tsc;
|
||||
|
||||