|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 07/15] xen: arm: stub out wallclock time.
We don't currently have much concept of wallclock time on ARM (for
either the hypervisor, dom0 or guests). For now just stub everything
out. Specifically domain_set_time_offset, update_vcpu_system_time and
wallclock_time.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
xen/arch/arm/dummy.S | 5 -----
xen/arch/arm/time.c | 18 ++++++++++++++++++
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/xen/arch/arm/dummy.S b/xen/arch/arm/dummy.S
index 2110bf1..87159da 100644
--- a/xen/arch/arm/dummy.S
+++ b/xen/arch/arm/dummy.S
@@ -6,9 +6,6 @@ x: .word 0xe7f000f0 /* Undefined instruction */
.globl x; \
x: mov pc, lr
-/* VCPU */
-NOP(update_vcpu_system_time);
-
/* Grant Tables */
DUMMY(steal_page);
@@ -18,8 +15,6 @@ DUMMY(page_is_ram_type);
/* Other */
DUMMY(domain_get_maximum_gpfn);
DUMMY(domain_relinquish_resources);
-DUMMY(domain_set_time_offset);
DUMMY(dom_cow);
DUMMY(send_timer_event);
DUMMY(share_xen_page_with_privileged_guests);
-DUMMY(wallclock_time);
diff --git a/xen/arch/arm/time.c b/xen/arch/arm/time.c
index b6d7015..ac606f7 100644
--- a/xen/arch/arm/time.c
+++ b/xen/arch/arm/time.c
@@ -25,6 +25,7 @@
#include <xen/mm.h>
#include <xen/softirq.h>
#include <xen/time.h>
+#include <xen/sched.h>
#include <asm/system.h>
/*
@@ -185,6 +186,23 @@ void udelay(unsigned long usecs)
isb();
}
+/* VCPU PV clock. */
+void update_vcpu_system_time(struct vcpu *v)
+{
+ /* XXX update shared_info->wc_* */
+}
+
+void domain_set_time_offset(struct domain *d, int32_t time_offset_seconds)
+{
+ d->time_offset_seconds = time_offset_seconds;
+ /* XXX update guest visible wallclock time */
+}
+
+struct tm wallclock_time(void)
+{
+ return (struct tm) { 0 };
+}
+
/*
* Local variables:
* mode: C
--
1.7.9.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |