|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [V1 PATCH 2/3] pvh: fix pirq path for pvh
>>> On 25.02.14 at 02:03, Mukesh Rathor <mukesh.rathor@xxxxxxxxxx> wrote:
> Just like hvm, pirq eoi shared page is not there for pvh. pvh should
> not touch any pv_domain fields.
While the latter is true, wasn't it that IRQ handling wise PVH is using
PV mechanisms? In which case the EOI map page would be of
interest, and rather than guarding the accesses you ought to move
the field out of pv_domain.
Jan
> Signed-off-by: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
> ---
> xen/arch/x86/irq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c
> index db70077..88444be 100644
> --- a/xen/arch/x86/irq.c
> +++ b/xen/arch/x86/irq.c
> @@ -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);
> }
>
> --
> 1.8.3.1
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |