[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] x86/HVM: avoid truncation of PM timer I/O port range version
Don't silently ignore the upper 32 bits. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/xen/arch/x86/hvm/pmtimer.c +++ b/xen/arch/x86/hvm/pmtimer.c @@ -313,9 +313,9 @@ static int acpi_load(struct domain *d, 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; --- a/xen/include/asm-x86/hvm/vpt.h +++ b/xen/include/asm-x86/hvm/vpt.h @@ -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); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |