Re: [kvm-devel] RFC/patch 2/3 portability: move x86 emulation and mmio device hook to x86.c

2007-10-31 Thread Hollis Blanchard
On Wed, 2007-10-31 at 02:24 +0200, Avi Kivity wrote: For x86 there are two kinds of mmio devices: one is the expected system-wide mmio, and the other is mmio that depends not only on the address, but also on which cpu originated the request. This type is only needed for the local apic.

Re: [kvm-devel] RFC/patch 2/3 portability: move x86 emulation and mmio device hook to x86.c

2007-10-31 Thread Avi Kivity
Hollis Blanchard wrote: On Wed, 2007-10-31 at 02:24 +0200, Avi Kivity wrote: For x86 there are two kinds of mmio devices: one is the expected system-wide mmio, and the other is mmio that depends not only on the address, but also on which cpu originated the request. This type is only

Re: [kvm-devel] RFC/patch 2/3 portability: move x86 emulation and mmio device hook to x86.c

2007-10-30 Thread Hollis Blanchard
On Tue, 2007-10-30 at 18:44 +0100, Carsten Otte wrote: -/* - * Only apic need an MMIO device hook, so shortcut now.. - */ -static struct kvm_io_device *vcpu_find_pervcpu_dev(struct kvm_vcpu *vcpu, - gpa_t addr) -{ - struct kvm_io_device