linux/drivers/kvm
Carsten Otte 313a3dc75d KVM: Portability: split kvm_vcpu_ioctl
This patch splits kvm_vcpu_ioctl into archtecture independent parts, and
x86 specific parts which go to kvm_arch_vcpu_ioctl in x86.c.

Common ioctls for all architectures are:
KVM_RUN, KVM_GET/SET_(S-)REGS, KVM_TRANSLATE, KVM_INTERRUPT,
KVM_DEBUG_GUEST, KVM_SET_SIGNAL_MASK, KVM_GET/SET_FPU
Note that some PPC chips don't have an FPU, so we might need an #ifdef
around KVM_GET/SET_FPU one day.

x86 specific ioctls are:
KVM_GET/SET_LAPIC, KVM_SET_CPUID, KVM_GET/SET_MSRS

An interresting aspect is vcpu_load/vcpu_put. We now have a common
vcpu_load/put which does the preemption stuff, and an architecture
specific kvm_arch_vcpu_load/put. In the x86 case, this one calls the
vmx/svm function defined in kvm_x86_ops.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2008-01-30 17:52:52 +02:00
..
i8259.c KVM: Add get/set irqchip ioctls for in-kernel PIC live migration support 2007-10-13 10:18:25 +02:00
ioapic.c KVM: In-kernel I/O APIC model 2007-10-13 10:18:25 +02:00
irq.c KVM: deliver PIC interrupt only to vcpu0 2007-10-13 10:18:26 +02:00
irq.h KVM: Add kvm_free_lapic() to pair with kvm_create_lapic() 2008-01-30 17:52:50 +02:00
Kconfig Consolidate host virtualization support under Virtualization menu 2007-10-23 15:49:47 +10:00
kvm.h KVM: Portability: split kvm_vcpu_ioctl 2008-01-30 17:52:52 +02:00
kvm_main.c KVM: Portability: split kvm_vcpu_ioctl 2008-01-30 17:52:52 +02:00
kvm_svm.h KVM: Dynamically allocate vcpus 2007-10-13 10:18:20 +02:00
lapic.c KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
Makefile KVM: Move x86 msr handling to new files x86.[ch] 2008-01-30 17:52:51 +02:00
mmu.c KVM: MMU: Instantiate real-mode shadows as user writable shadows 2008-01-30 17:52:52 +02:00
paging_tmpl.h KVM: MMU: When updating the dirty bit, inform the mmu about it 2008-01-30 17:52:52 +02:00
segment_descriptor.h
svm.c KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
svm.h KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
vmx.c KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
vmx.h KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
x86.c KVM: Portability: split kvm_vcpu_ioctl 2008-01-30 17:52:52 +02:00
x86.h KVM: Move x86 msr handling to new files x86.[ch] 2008-01-30 17:52:51 +02:00
x86_emulate.c KVM: CodingStyle cleanup 2008-01-30 17:52:50 +02:00
x86_emulate.h KVM: x86 emulator: Remove no_wb, use dst.type = OP_NONE instead 2008-01-30 17:52:49 +02:00