[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 8/9] x86/time: only HVM has RTC



PV doesn't have RTC. Enclose relevant code in CONFIG_HVM.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 xen/arch/x86/time.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index 536449b..8d74210 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -1144,6 +1144,7 @@ void force_update_vcpu_system_time(struct vcpu *v)
 
 static void update_domain_rtc(void)
 {
+#if CONFIG_HVM
     struct domain *d;
 
     rcu_read_lock(&domlist_read_lock);
@@ -1153,13 +1154,16 @@ static void update_domain_rtc(void)
             rtc_update_clock(d);
 
     rcu_read_unlock(&domlist_read_lock);
+#endif
 }
 
 void domain_set_time_offset(struct domain *d, int64_t time_offset_seconds)
 {
     d->time_offset_seconds = time_offset_seconds;
+#if CONFIG_HVM
     if ( is_hvm_domain(d) )
         rtc_update_clock(d);
+#endif
     update_domain_wallclock_time(d);
 }
 
-- 
git-series 0.9.1

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.