diff options
author | Juergen Gross <jgross@suse.com> | 2016-07-06 01:00:28 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-06 05:42:13 -0400 |
commit | 7ba8dba95cb227eb6c270b1aa77f942e45f5e47c (patch) | |
tree | 9d906d111b4db30452a0ea0cac43ea500d950d47 /include/xen | |
parent | 1ad6344acfbf19288573b4a5fa0b07cbb5af27d7 (diff) |
xen: update xen headers
Update some Xen headers to be able to use new functionality.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/interface/vcpu.h | 24 | ||||
-rw-r--r-- | include/xen/interface/xen.h | 17 |
2 files changed, 31 insertions, 10 deletions
diff --git a/include/xen/interface/vcpu.h b/include/xen/interface/vcpu.h index b05288ce3991..98188c87f5c1 100644 --- a/include/xen/interface/vcpu.h +++ b/include/xen/interface/vcpu.h | |||
@@ -75,15 +75,21 @@ | |||
75 | */ | 75 | */ |
76 | #define VCPUOP_get_runstate_info 4 | 76 | #define VCPUOP_get_runstate_info 4 |
77 | struct vcpu_runstate_info { | 77 | struct vcpu_runstate_info { |
78 | /* VCPU's current state (RUNSTATE_*). */ | 78 | /* VCPU's current state (RUNSTATE_*). */ |
79 | int state; | 79 | int state; |
80 | /* When was current state entered (system time, ns)? */ | 80 | /* When was current state entered (system time, ns)? */ |
81 | uint64_t state_entry_time; | 81 | uint64_t state_entry_time; |
82 | /* | 82 | /* |
83 | * Time spent in each RUNSTATE_* (ns). The sum of these times is | 83 | * Update indicator set in state_entry_time: |
84 | * guaranteed not to drift from system time. | 84 | * When activated via VMASST_TYPE_runstate_update_flag, set during |
85 | */ | 85 | * updates in guest memory mapped copy of vcpu_runstate_info. |
86 | uint64_t time[4]; | 86 | */ |
87 | #define XEN_RUNSTATE_UPDATE (1ULL << 63) | ||
88 | /* | ||
89 | * Time spent in each RUNSTATE_* (ns). The sum of these times is | ||
90 | * guaranteed not to drift from system time. | ||
91 | */ | ||
92 | uint64_t time[4]; | ||
87 | }; | 93 | }; |
88 | DEFINE_GUEST_HANDLE_STRUCT(vcpu_runstate_info); | 94 | DEFINE_GUEST_HANDLE_STRUCT(vcpu_runstate_info); |
89 | 95 | ||
diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h index d1331121c0bd..1b0d189cd3d3 100644 --- a/include/xen/interface/xen.h +++ b/include/xen/interface/xen.h | |||
@@ -413,7 +413,22 @@ DEFINE_GUEST_HANDLE_STRUCT(mmuext_op); | |||
413 | /* x86/PAE guests: support PDPTs above 4GB. */ | 413 | /* x86/PAE guests: support PDPTs above 4GB. */ |
414 | #define VMASST_TYPE_pae_extended_cr3 3 | 414 | #define VMASST_TYPE_pae_extended_cr3 3 |
415 | 415 | ||
416 | #define MAX_VMASST_TYPE 3 | 416 | /* |
417 | * x86 guests: Sane behaviour for virtual iopl | ||
418 | * - virtual iopl updated from do_iret() hypercalls. | ||
419 | * - virtual iopl reported in bounce frames. | ||
420 | * - guest kernels assumed to be level 0 for the purpose of iopl checks. | ||
421 | */ | ||
422 | #define VMASST_TYPE_architectural_iopl 4 | ||
423 | |||
424 | /* | ||
425 | * All guests: activate update indicator in vcpu_runstate_info | ||
426 | * Enable setting the XEN_RUNSTATE_UPDATE flag in guest memory mapped | ||
427 | * vcpu_runstate_info during updates of the runstate information. | ||
428 | */ | ||
429 | #define VMASST_TYPE_runstate_update_flag 5 | ||
430 | |||
431 | #define MAX_VMASST_TYPE 5 | ||
417 | 432 | ||
418 | #ifndef __ASSEMBLY__ | 433 | #ifndef __ASSEMBLY__ |
419 | 434 | ||