From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 07/15] xen: arm: stub out wallclock time. Date: Tue, 4 Dec 2012 11:56:31 +0000 Message-ID: <1354622199-27504-7-git-send-email-ian.campbell@citrix.com> References: <1354622173.2693.72.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1354622173.2693.72.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 --- 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 #include #include +#include #include /* @@ -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