]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xen: update xen headers
authorJuergen Gross <jgross@suse.com>
Wed, 6 Jul 2016 05:00:28 +0000 (07:00 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 6 Jul 2016 09:42:13 +0000 (10:42 +0100)
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>
include/xen/interface/vcpu.h
include/xen/interface/xen.h

index b05288ce3991bd8ce5b0caf632cb86a81a3c59cf..98188c87f5c15efab55256331915747e144f7662 100644 (file)
  */
 #define VCPUOP_get_runstate_info        4
 struct vcpu_runstate_info {
-               /* VCPU's current state (RUNSTATE_*). */
-               int              state;
-               /* When was current state entered (system time, ns)? */
-               uint64_t state_entry_time;
-               /*
-                * Time spent in each RUNSTATE_* (ns). The sum of these times is
-                * guaranteed not to drift from system time.
-                */
-               uint64_t time[4];
+       /* VCPU's current state (RUNSTATE_*). */
+       int              state;
+       /* When was current state entered (system time, ns)? */
+       uint64_t state_entry_time;
+       /*
+        * Update indicator set in state_entry_time:
+        * When activated via VMASST_TYPE_runstate_update_flag, set during
+        * updates in guest memory mapped copy of vcpu_runstate_info.
+        */
+#define XEN_RUNSTATE_UPDATE    (1ULL << 63)
+       /*
+        * Time spent in each RUNSTATE_* (ns). The sum of these times is
+        * guaranteed not to drift from system time.
+        */
+       uint64_t time[4];
 };
 DEFINE_GUEST_HANDLE_STRUCT(vcpu_runstate_info);
 
index d1331121c0bd8c31a4f2b0e3e9a85b37078b30bf..1b0d189cd3d33f7ce19f739663afdcd7080703c9 100644 (file)
@@ -413,7 +413,22 @@ DEFINE_GUEST_HANDLE_STRUCT(mmuext_op);
 /* x86/PAE guests: support PDPTs above 4GB. */
 #define VMASST_TYPE_pae_extended_cr3     3
 
-#define MAX_VMASST_TYPE 3
+/*
+ * x86 guests: Sane behaviour for virtual iopl
+ *  - virtual iopl updated from do_iret() hypercalls.
+ *  - virtual iopl reported in bounce frames.
+ *  - guest kernels assumed to be level 0 for the purpose of iopl checks.
+ */
+#define VMASST_TYPE_architectural_iopl   4
+
+/*
+ * All guests: activate update indicator in vcpu_runstate_info
+ * Enable setting the XEN_RUNSTATE_UPDATE flag in guest memory mapped
+ * vcpu_runstate_info during updates of the runstate information.
+ */
+#define VMASST_TYPE_runstate_update_flag 5
+
+#define MAX_VMASST_TYPE 5
 
 #ifndef __ASSEMBLY__