|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH 10/33] ia64/xen: add a necessary header file to
Create include/asm-ia64/pvclock-abi.h to compile which contains
the same definitions of include/asm-x86/pvclock-abi.h because ia64/xen
uses same structure.
Hopefully include/asm-x86/pvclock-abi.h would be moved to somewhere
more generic.
Another approach is to include include/asm-x86/pvclock-abi.h
from include/asm-ia64/pvclock-abi.h. But this would break
if x86 header files are moved under arch/x86.
So for now, same definitions are duplicated as suggested by Tony.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Cc: "Luck, Tony" <tony.luck@xxxxxxxxx>
---
arch/ia64/include/asm/pvclock-abi.h | 48 +++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
create mode 100644 arch/ia64/include/asm/pvclock-abi.h
diff --git a/arch/ia64/include/asm/pvclock-abi.h
b/arch/ia64/include/asm/pvclock-abi.h
new file mode 100644
index 0000000..38a7a9e
--- /dev/null
+++ b/arch/ia64/include/asm/pvclock-abi.h
@@ -0,0 +1,48 @@
+/*
+ * same structure to x86's
+ * Hopefully asm-x86/pvclock-abi.h would be moved to somewhere more generic.
+ * For now, define same duplicated definitions.
+ */
+
+#ifndef ASM_IA64__PVCLOCK_ABI_H
+#define ASM_IA64__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__PVCLOCK_ABI_H */
--
1.6.0.2
_______________________________________________
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 11/33] ia64/xen: define helper functions for xen related address conversion., (continued)
- [Xen-ia64-devel] [PATCH 11/33] ia64/xen: define helper functions for xen related address conversion., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 16/33] ia64/xen: add definitions necessary for xen event channel., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 13/33] ia64/xen: implement the arch specific part of xencomm., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 08/33] ia64/xen: introduce definitions necessary for ia64/xen hypercalls., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 23/33] ia64/pv_ops/xen: paravirtualize ivt.S for xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 15/33] ia64/xen: implement arch specific part of xen grant table., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 26/33] ia64/pv_ops/xen: define the nubmer of irqs which xen needs., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 24/33] ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 12/33] ia64/xen: define helper functions for xen hypercalls., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 20/33] ia64/pv_ops/xen: define xen pv_cpu_ops., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 10/33] ia64/xen: add a necessary header file to compile include/xen/interface/xen.h,
Isaku Yamahata <=
- [Xen-ia64-devel] [PATCH 31/33] ia64/pv_ops: update Kconfig for paravirtualized guest and xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 19/33] ia64/pv_ops/xen: define xen pv_init_ops for various xen initialization., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 22/33] ia64/pv_ops/xen: paravirtualize DO_SAVE_MIN for xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 09/33] ia64/xen: define several constants for ia64/xen., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 32/33] ia64/xen: a recipe for using xen/ia64 with pv_ops., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 30/33] ia64/xen: preliminary support for save/restore., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 25/33] ia64/pv_ops/xen: implement xen pv_iosapic_ops., Isaku Yamahata
- [Xen-ia64-devel] [PATCH 21/33] ia64/pv_ops/xen: define xen paravirtualized instructions for hand written assembly code, Isaku Yamahata
- [Xen-ia64-devel] [PATCH 17/33] ia64/xen: introduce helper function to identify domain mode., Isaku Yamahata
|
|
|
|
|