x86/HVM: avoid truncation of PM timer I/O port range version
PATCH 1/1 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 <[email protected]>
xen/arch/x86/hvm/pmtimer.c +2 -2
@@ -313,9 +313,9 @@ static int acpi_load(struct domain *d, hHVM_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 ;
xen/include/asm-x86/hvm/vpt.h +1 -1
@@ -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
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Jan Beulich
Don't silently ignore the upper 32 bits.
Signed-off-by Jan Beulich <[email protected]>
Reviewed-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Andrew Cooper
Acked-byQuoted 5 lines · Wei Liu
Quoted 3 lines · Jan Beulich
Don't silently ignore the upper 32 bits.
Signed-off-by Jan Beulich <[email protected]>Reviewed-by Wei Liu <[email protected]>
Acked-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel