diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-04-15 13:28:02 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-04-15 13:28:02 +0100 |
commit | 6742db6e6819687ab311199bfe76476947ed75ed (patch) | |
tree | 3736ca574aebcce589b9769d62aeb96bc19b0176 /xen/arch/x86/hvm/pmtimer.c | |
parent | ef3c86eb818614eb5a4bdd7c0c82b1e1346dd60e (diff) | |
download | xen-6742db6e6819687ab311199bfe76476947ed75ed.tar.gz xen-6742db6e6819687ab311199bfe76476947ed75ed.tar.bz2 xen-6742db6e6819687ab311199bfe76476947ed75ed.zip |
x86, hvm: I/O emulation handlers return X86EMUL_* return codes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/pmtimer.c')
-rw-r--r-- | xen/arch/x86/hvm/pmtimer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c index 8d3fff8f44..4924a80687 100644 --- a/xen/arch/x86/hvm/pmtimer.c +++ b/xen/arch/x86/hvm/pmtimer.c @@ -169,7 +169,7 @@ static int handle_evt_io( spin_unlock(&s->lock); - return 1; + return X86EMUL_OKAY; } @@ -183,7 +183,7 @@ static int handle_pmt_io( if ( bytes != 4 ) { gdprintk(XENLOG_WARNING, "HVM_PMT bad access\n"); - return 1; + return X86EMUL_OKAY; } if ( dir == IOREQ_READ ) @@ -192,10 +192,10 @@ static int handle_pmt_io( pmt_update_time(s); *val = s->pm.tmr_val; spin_unlock(&s->lock); - return 1; + return X86EMUL_OKAY; } - return 0; + return X86EMUL_UNHANDLEABLE; } static int pmtimer_save(struct domain *d, hvm_domain_context_t *h) |