aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/hpet.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/x86/hvm/hpet.c')
-rw-r--r--xen/arch/x86/hvm/hpet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c
index f6845755a0..49ca998d37 100644
--- a/xen/arch/x86/hvm/hpet.c
+++ b/xen/arch/x86/hvm/hpet.c
@@ -353,7 +353,8 @@ static void hpet_write(
static int hpet_range(struct vcpu *v, unsigned long addr)
{
- return ((addr >= HPET_BASE_ADDRESS) &&
+ return (v->domain->arch.hvm_domain.params[HVM_PARAM_HPET_ENABLED] &&
+ (addr >= HPET_BASE_ADDRESS) &&
(addr < (HPET_BASE_ADDRESS + HPET_MMAP_SIZE)));
}