Jeremy Fitzhardinge wrote:
Zachary Amsden wrote:
Of course we can create a bunch of new code to use the genapic
interface. It is just a matter of copying apic.c and io-apic.c
verbatim and applying the sed command s/apic/vmi_apic/g.
Wouldn't it be cleaner to just change apic.c and io-apic.c to use, say,
apic_ops to get access to the actual hardware, and then you could have
native and vmi versions while sharing the bulk of the code. Isn't that
what genapic is intended to solve anyway?
But the native and vmi versions would be identical. You would be moving
the apic_read / apic_write operations from paravirt_ops to apic_ops,
which doesn't really solve anything, it just moves it around.
Zach
_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/virtualization