diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 00:13:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-21 00:13:26 -0400 |
commit | f076ab8d048f152b968bb1c6313fed88abb037fe (patch) | |
tree | fe9ff7bc40d04c5a12eb41a90cc0e1dbf8ae4e45 /arch/ia64 | |
parent | db6d8c7a4027b48d797b369a53f8470aaeed7063 (diff) | |
parent | 597a5f551ec4cd0aa0966e4fff4684ecc8c31c0d (diff) |
Merge branch 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm
* 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm: (70 commits)
KVM: Adjust smp_call_function_mask() callers to new requirements
KVM: MMU: Fix potential race setting upper shadow ptes on nonpae hosts
KVM: x86 emulator: emulate clflush
KVM: MMU: improve invalid shadow root page handling
KVM: MMU: nuke shadowed pgtable pages and ptes on memslot destruction
KVM: Prefix some x86 low level function with kvm_, to avoid namespace issues
KVM: check injected pic irq within valid pic irqs
KVM: x86 emulator: Fix HLT instruction
KVM: Apply the kernel sigmask to vcpus blocked due to being uninitialized
KVM: VMX: Add ept_sync_context in flush_tlb
KVM: mmu_shrink: kvm_mmu_zap_page requires slots_lock to be held
x86: KVM guest: make kvm_smp_prepare_boot_cpu() static
KVM: SVM: fix suspend/resume support
KVM: s390: rename private structures
KVM: s390: Set guest storage limit and offset to sane values
KVM: Fix memory leak on guest exit
KVM: s390: dont allocate dirty bitmap
KVM: move slots_lock acquision down to vapic_exit
KVM: VMX: Fake emulate Intel perfctr MSRs
KVM: VMX: Fix a wrong usage of vmcs_config
...
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kvm/Makefile | 3 | ||||
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 20 |
2 files changed, 11 insertions, 12 deletions
diff --git a/arch/ia64/kvm/Makefile b/arch/ia64/kvm/Makefile index 112791dd2542..bf22fb9e6dcf 100644 --- a/arch/ia64/kvm/Makefile +++ b/arch/ia64/kvm/Makefile | |||
@@ -43,7 +43,8 @@ $(obj)/$(offsets-file): arch/ia64/kvm/asm-offsets.s | |||
43 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ | 43 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ |
44 | EXTRA_AFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ | 44 | EXTRA_AFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ |
45 | 45 | ||
46 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o) | 46 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ |
47 | coalesced_mmio.o) | ||
47 | 48 | ||
48 | kvm-objs := $(common-objs) kvm-ia64.o kvm_fw.o | 49 | kvm-objs := $(common-objs) kvm-ia64.o kvm_fw.o |
49 | obj-$(CONFIG_KVM) += kvm.o | 50 | obj-$(CONFIG_KVM) += kvm.o |
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index 68c978be9a51..2672f4d278ac 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c | |||
@@ -187,6 +187,9 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
187 | 187 | ||
188 | r = 1; | 188 | r = 1; |
189 | break; | 189 | break; |
190 | case KVM_CAP_COALESCED_MMIO: | ||
191 | r = KVM_COALESCED_MMIO_PAGE_OFFSET; | ||
192 | break; | ||
190 | default: | 193 | default: |
191 | r = 0; | 194 | r = 0; |
192 | } | 195 | } |
@@ -195,11 +198,11 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
195 | } | 198 | } |
196 | 199 | ||
197 | static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, | 200 | static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, |
198 | gpa_t addr) | 201 | gpa_t addr, int len, int is_write) |
199 | { | 202 | { |
200 | struct kvm_io_device *dev; | 203 | struct kvm_io_device *dev; |
201 | 204 | ||
202 | dev = kvm_io_bus_find_dev(&vcpu->kvm->mmio_bus, addr); | 205 | dev = kvm_io_bus_find_dev(&vcpu->kvm->mmio_bus, addr, len, is_write); |
203 | 206 | ||
204 | return dev; | 207 | return dev; |
205 | } | 208 | } |
@@ -231,7 +234,7 @@ static int handle_mmio(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
231 | kvm_run->exit_reason = KVM_EXIT_MMIO; | 234 | kvm_run->exit_reason = KVM_EXIT_MMIO; |
232 | return 0; | 235 | return 0; |
233 | mmio: | 236 | mmio: |
234 | mmio_dev = vcpu_find_mmio_dev(vcpu, p->addr); | 237 | mmio_dev = vcpu_find_mmio_dev(vcpu, p->addr, p->size, !p->dir); |
235 | if (mmio_dev) { | 238 | if (mmio_dev) { |
236 | if (!p->dir) | 239 | if (!p->dir) |
237 | kvm_iodevice_write(mmio_dev, p->addr, p->size, | 240 | kvm_iodevice_write(mmio_dev, p->addr, p->size, |
@@ -1035,14 +1038,6 @@ static void kvm_free_vmm_area(void) | |||
1035 | } | 1038 | } |
1036 | } | 1039 | } |
1037 | 1040 | ||
1038 | /* | ||
1039 | * Make sure that a cpu that is being hot-unplugged does not have any vcpus | ||
1040 | * cached on it. Leave it as blank for IA64. | ||
1041 | */ | ||
1042 | void decache_vcpus_on_cpu(int cpu) | ||
1043 | { | ||
1044 | } | ||
1045 | |||
1046 | static void vti_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 1041 | static void vti_vcpu_load(struct kvm_vcpu *vcpu, int cpu) |
1047 | { | 1042 | { |
1048 | } | 1043 | } |
@@ -1460,6 +1455,9 @@ int kvm_arch_set_memory_region(struct kvm *kvm, | |||
1460 | return 0; | 1455 | return 0; |
1461 | } | 1456 | } |
1462 | 1457 | ||
1458 | void kvm_arch_flush_shadow(struct kvm *kvm) | ||
1459 | { | ||
1460 | } | ||
1463 | 1461 | ||
1464 | long kvm_arch_dev_ioctl(struct file *filp, | 1462 | long kvm_arch_dev_ioctl(struct file *filp, |
1465 | unsigned int ioctl, unsigned long arg) | 1463 | unsigned int ioctl, unsigned long arg) |