|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH 02/18] xen: hook io_apic read/write operations
* Ingo Molnar <mingo@xxxxxxx> wrote:
>
> * Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
>
> > --- a/arch/x86/kernel/apic/io_apic.c
> > +++ b/arch/x86/kernel/apic/io_apic.c
> > @@ -62,8 +62,10 @@
> > #include <asm/uv/uv_hub.h>
> > #include <asm/uv/uv_irq.h>
> >
> > +#include <asm/xen/hypervisor.h>
> > #include <asm/apic.h>
> >
> > +
> > #define __apicdebuginit(type) static type __init
> >
> > /*
> > @@ -407,14 +409,26 @@ static inline void io_apic_eoi(unsigned int apic,
> > unsigned int vector)
> >
> > static inline unsigned int io_apic_read(unsigned int apic, unsigned int
> > reg)
> > {
> > - struct io_apic __iomem *io_apic = io_apic_base(apic);
> > + struct io_apic __iomem *io_apic;
> > +
> > + if (xen_initial_domain())
> > + return xen_io_apic_read(apic, reg);
>
> hm, any reason why we dont want to create a 'struct io_apic'
> driver abstraction instead of spreading xen_initial_domain()
> checks all around the code?
And on a higher level, i still dont see why you dont do the whole
Xen thing under an irqchip. There should be no extra crappy checks
in native code.
Ingo
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 10/18] xen: don't setup acpi interrupt unless there is one, (continued)
- [Xen-devel] [PATCH 10/18] xen: don't setup acpi interrupt unless there is one, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11/18] xen: use acpi_get_override_irq() to get triggering for legacy irqs, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 12/18] xen: initialize irq 0 too, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 16/18] xen: disable MSI, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05/18] x86/io_apic: add get_nr_irqs_gsi(), Jeremy Fitzhardinge
- [Xen-devel] [PATCH 13/18] xen: dynamically allocate irq & event structures, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 01/18] xen/dom0: handle acpi lapic parsing in Xen dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 15/18] xen: fix legacy irq setup, make ioapic-less machines work., Jeremy Fitzhardinge
- [Xen-devel] [PATCH 02/18] xen: hook io_apic read/write operations, Jeremy Fitzhardinge
[Xen-devel] [PATCH 14/18] xen: set pirq name to something useful., Jeremy Fitzhardinge
|
|
|
|
|