|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH] ia64/xen: add a neccessary header file to copml
Create include/asm-ia64/xen/pvclock-abi.h to compile.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
include/asm-ia64/xen/pvclock-abi.h | 44 ++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
create mode 100644 include/asm-ia64/xen/pvclock-abi.h
diff --git a/include/asm-ia64/xen/pvclock-abi.h
b/include/asm-ia64/xen/pvclock-abi.h
new file mode 100644
index 0000000..0dcf3b4
--- /dev/null
+++ b/include/asm-ia64/xen/pvclock-abi.h
@@ -0,0 +1,44 @@
+/* This file is stolen from include/asm-x86/pvclock-abi.h */
+
+#ifndef _ASM_IA64_XEN_PVCLOCK_ABI_H_
+#define _ASM_IA64_XEN_PVCLOCK_ABI_H_
+#ifndef __ASSEMBLY__
+
+/*
+ * These structs MUST NOT be changed.
+ * They are the ABI between hypervisor and guest OS.
+ * Both Xen and KVM are using this.
+ *
+* pvclock_vcpu_time_info holds the system time and the tsc timestamp
+ * of the last update. So the guest can use the tsc delta to get a
+ * more precise system time. There is one per virtual cpu.
+ *
+ * pvclock_wall_clock references the point in time when the system
+ * time was zero (usually boot time), thus the guest calculates the
+ * current wall clock by adding the system time.
+ *
+ * Protocol for the "version" fields is: hypervisor raises it (making
+ * it uneven) before it starts updating the fields and raises it again
+ * (making it even) when it is done. Thus the guest can make sure the
+ * time values it got are consistent by checking the version before
+ * and after reading them.
+ */
+
+struct pvclock_vcpu_time_info {
+ u32 version;
+ u32 pad0;
+ u64 tsc_timestamp;
+ u64 system_time;
+ u32 tsc_to_system_mul;
+ s8 tsc_shift;
+ u8 pad[3];
+} __attribute__((__packed__)); /* 32 bytes */
+
+struct pvclock_wall_clock {
+ u32 version;
+ u32 sec;
+ u32 nsec;
+} __attribute__((__packed__));
+
+#endif /* __ASSEMBLY__ */
+#endif /* _ASM_IA64_XEN_PVCLOCK_ABI_H_ */
--
1.5.3
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [PATCH 00/29] ia64/xen domU take 8, Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/xen: reserve "break" numbers used for xen hypercalls., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/xen: add a neccessary header file to copmle include/xen/interface/xen.h,
Isaku Yamahata <=
- [Xen-ia64-devel] [PATCH] ia64/xen: define several constants for ia64/xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64: move function declaration, ia64_cpu_local_tick() from .c to .h, Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/xen: increase IA64_MAX_RSVD_REGIONS., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/xen: introduce sync bitops which is necessary for ia64/xen support., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/xen: define helper functions for xen related address conversion., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/pv_ops/xen: define xen pv_cpu_ops., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/pv_ops/xen: paravirtualize ivt.S for xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization., Isaku Yamahata
- [Xen-ia64-devel] [PATCH] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen., Isaku Yamahata
|
|
|
|
|