diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2006-10-31 16:42:46 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2006-10-31 16:42:46 +0000 |
commit | 9e0d4d34f3e274e36cc3e7b4c8f76e4f72bf993d (patch) | |
tree | d627a59abbf0cea21cb03b88efee2f63262672d7 /xen/arch/x86/hvm/pmtimer.c | |
parent | 342c7011f6dc7a04505846638f4dafcd50f533df (diff) | |
download | xen-9e0d4d34f3e274e36cc3e7b4c8f76e4f72bf993d.tar.gz xen-9e0d4d34f3e274e36cc3e7b4c8f76e4f72bf993d.tar.bz2 xen-9e0d4d34f3e274e36cc3e7b4c8f76e4f72bf993d.zip |
[HVM] Use correct types for guest physical addresses
Guest physical addresses are not guaranteed to fit in either a pointer
or an unsigned long int; use paddr_t for them.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/pmtimer.c')
-rw-r--r-- | xen/arch/x86/hvm/pmtimer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c index e0c93536ea..f857de8f87 100644 --- a/xen/arch/x86/hvm/pmtimer.c +++ b/xen/arch/x86/hvm/pmtimer.c @@ -20,7 +20,7 @@ static int handle_pmt_io(ioreq_t *p) uint64_t curr_gtime; if (p->size != 4 || - p->pdata_valid || + p->data_is_ptr || p->type != IOREQ_TYPE_PIO){ printk("HVM_PMT: wrong PM timer IO\n"); return 1; @@ -32,7 +32,7 @@ static int handle_pmt_io(ioreq_t *p) } else if (p->dir == 1) { /* read */ curr_gtime = hvm_get_guest_time(s->vcpu); s->pm1_timer += ((curr_gtime - s->last_gtime) * s->scale) >> 32; - p->u.data = s->pm1_timer; + p->data = s->pm1_timer; s->last_gtime = curr_gtime; return 1; } |