]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/HVM: avoid truncation of PM timer I/O port range version
authorJan Beulich <jbeulich@suse.com>
Fri, 31 Jan 2020 15:48:25 +0000 (16:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Jan 2020 15:48:25 +0000 (16:48 +0100)
Don't silently ignore the upper 32 bits.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/pmtimer.c
xen/include/asm-x86/hvm/vpt.h

index 21ebb933315c17ec23adb0fbefcf6319c4c83034..97b9e41712fa9dece6722eea6b6cb416208eaa87 100644 (file)
@@ -313,9 +313,9 @@ static int acpi_load(struct domain *d, hvm_domain_context_t *h)
 HVM_REGISTER_SAVE_RESTORE(PMTIMER, acpi_save, acpi_load,
                           1, HVMSR_PER_DOM);
 
-int pmtimer_change_ioport(struct domain *d, unsigned int version)
+int pmtimer_change_ioport(struct domain *d, uint64_t version)
 {
-    unsigned int old_version;
+    uint64_t old_version;
 
     if ( !has_vpm(d) )
         return -ENODEV;
index 99169dd6254a3a9865e9a71425bc1ff597466606..3fc78f8f496fd2b4c2413186948ccadf83da83f8 100644 (file)
@@ -188,7 +188,7 @@ void rtc_update_clock(struct domain *d);
 void pmtimer_init(struct vcpu *v);
 void pmtimer_deinit(struct domain *d);
 void pmtimer_reset(struct domain *d);
-int pmtimer_change_ioport(struct domain *d, unsigned int version);
+int pmtimer_change_ioport(struct domain *d, uint64_t version);
 
 void hpet_init(struct domain *d);
 void hpet_deinit(struct domain *d);