mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: fix pirq path for pvh
Just like hvm, pirq eoi shared page is not there for pvh. pvh should not touch any pv_domain fields. Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
This commit is contained in:
1 parent
5f979614ea
commit
bea8ee1a5f
1 file changed
+2
-2
+2
-2
@@ -1068,13 +1068,13 @@ bool_t cpu_has_pending_apic_eoi(void)
|
||||
|
||||
static inline void set_pirq_eoi(struct domain *d, unsigned int irq)
|
||||
{
|
||||
if ( !is_hvm_domain(d) && d->arch.pv_domain.pirq_eoi_map )
|
||||
if ( is_pv_domain(d) && d->arch.pv_domain.pirq_eoi_map )
|
||||
set_bit(irq, d->arch.pv_domain.pirq_eoi_map);
|
||||
}
|
||||
|
||||
static inline void clear_pirq_eoi(struct domain *d, unsigned int irq)
|
||||
{
|
||||
if ( !is_hvm_domain(d) && d->arch.pv_domain.pirq_eoi_map )
|
||||
if ( is_pv_domain(d) && d->arch.pv_domain.pirq_eoi_map )
|
||||
clear_bit(irq, d->arch.pv_domain.pirq_eoi_map);
|
||||
}
|
||||
|
||||
|
||||