Skip to content

KVM updates for 2.6.32 merge window (4/4)

Avi Kivity kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest47 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/47KVM: remove superfluous NULL pointer check in kvm_inject_pit_timer_irqs()arch/x86/kvm/i8254.c+1 -10 replies
2/47KVM: MMU: make __kvm_mmu_free_some_pages handle empty listarch/x86/kvm/mmu.c+2 -10 replies
3/47KVM: MMU: fix bogus alloc_mmu_pages assignmentarch/x86/kvm/mmu.c+0 -80 replies
4/47KVM: x86: Disallow hypercalls for guest callers in rings > 0arch/x86/kvm/x86.c include/linux/kvm_para.h+7 -02 replies
5/47KVM: VMX: Optimize vmx_get_cpl()arch/x86/kvm/vmx.c+1 -42 replies
6/47KVM: ignore reads to perfctr msrsarch/x86/kvm/x86.c+3 -00 replies
7/47KVM: fix EFER read buffer overflowarch/x86/kvm/vmx.c+5 -20 replies
8/47KVM: Call kvm_vcpu_kick() inside pic spinlockarch/x86/kvm/i8259.c arch/x86/kvm/irq.h+1 -100 replies
9/47KVM: Call ack notifiers from PIC when guest OS acks an IRQ.arch/x86/kvm/i8259.c+4 -140 replies
10/47KVM: Replace pic_lock()/pic_unlock() with direct call to spinlock functionsarch/x86/kvm/i8259.c+12 -240 replies
11/47x86: Export kmap_atomic_to_page()arch/x86/mm/highmem_32.c+1 -00 replies
12/47KVM: SVM: add helper functions for global interrupt flagarch/x86/kvm/svm.c+25 -80 replies
13/47KVM: SVM: optimize nested #vmexitarch/x86/kvm/svm.c+33 -350 replies
14/47KVM: SVM: optimize nested vmrunarch/x86/kvm/svm.c+21 -70 replies
15/47KVM: SVM: copy only necessary parts of the control area on vmrun/vmexitarch/x86/kvm/svm.c+34 -20 replies
16/47KVM: SVM: complete interrupts after handling nested exitsarch/x86/kvm/svm.c+3 -20 replies
17/47KVM: SVM: move nested svm state into seperate structarch/x86/kvm/svm.c+33 -290 replies
18/47KVM: SVM: cache nested interceptsarch/x86/kvm/svm.c+23 -70 replies
19/47KVM: SVM: consolidate nested_svm_exit_handledarch/x86/kvm/svm.c+49 -600 replies
20/47KVM: SVM: do nested vmexit in nested_svm_exit_handledarch/x86/kvm/svm.c+19 -230 replies
21/47KVM: SVM: simplify nested_svm_check_exceptionarch/x86/kvm/svm.c+8 -110 replies
22/47KVM: SVM: get rid of nested_svm_vmexit_realarch/x86/kvm/svm.c+40 -120 replies
23/47KVM: SVM: clean up nested_svm_exit_handled_msrarch/x86/kvm/svm.c+22 -150 replies
24/47KVM: SVM: clean up nestec vmload/vmsave pathsarch/x86/kvm/svm.c+17 -190 replies
25/47KVM: SVM: clean up nested vmrun patharch/x86/kvm/svm.c+22 -120 replies
26/47KVM: SVM: remove nested_svm_do and helper functionsarch/x86/kvm/svm.c+0 -600 replies
27/47KVM: SVM: handle errors in vmrun emulation path appropriatlyarch/x86/kvm/svm.c+13 -10 replies
28/47KVM: SVM: move special nested exit handling to separate functionarch/x86/kvm/svm.c+50 -300 replies
29/47KVM: SVM: remove unnecessary is_nested check from svm_cpu_runarch/x86/kvm/svm.c+1 -20 replies
30/47KVM: SVM: move nested_svm_intr main logic out of if-clausearch/x86/kvm/svm.c+11 -100 replies
31/47KVM: SVM: check for nested VINTR flag in svm_interrupt_allowedarch/x86/kvm/svm.c+1 -10 replies
32/47KVM: SVM: enable nested svm by defaultarch/x86/kvm/svm.c+1 -10 replies
33/47KVM: Update cr8 intercept when APIC TPR is changed by userspacearch/x86/kvm/x86.c+2 -00 replies
34/47KVM: SVM: Drop tlb flush workaround in nptarch/x86/kvm/svm.c+2 -110 replies
35/47KVM: Move #endif KVM_CAP_IRQ_ROUTING to correct placevirt/kvm/kvm_main.c+1 -10 replies
36/47KVM: VMX: Adjust rflags if in real mode emulationarch/x86/kvm/vmx.c+6 -10 replies
37/47KVM: When switching to a vm8086 task, load segments as 16-bitarch/x86/kvm/x86.c+8 -10 replies
38/47KVM: Rename x86_emulate.c to emulate.carch/x86/include/asm/kvm_emulate.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/Makefile +2 more+5 -50 replies
39/47Documentation: Update KVM list email addressDocumentation/ioctl/ioctl-number.txt+1 -10 replies
40/47KVM: export kvm_para.hinclude/asm-generic/Kbuild.asm include/linux/Kbuild+9 -00 replies
41/47KVM: Add __KERNEL__ guards to exported headersarch/ia64/include/asm/kvm_para.h arch/s390/include/asm/kvm_para.h+8 -00 replies
42/47KVM: Add missing #includearch/x86/include/asm/kvm_para.h+2 -00 replies
43/47KVM: x86 emulator: Add adc and sbb missing decoder flagsarch/x86/kvm/emulate.c+2 -20 replies
44/47KVM: Use kvm_{read,write}_guest_virt() to read and write segment descriptorsarch/x86/kvm/x86.c+2 -80 replies
45/47KVM: VMX: Fix EPT with WP bit change during pagingarch/x86/kvm/vmx.c+3 -30 replies
46/47KVM: Protect update_cr8_intercept() when running without an apicarch/x86/kvm/x86.c+3 -00 replies
47/47KVM: Document KVM_CAP_IRQCHIPDocumentation/kvm/api.txt+76 -00 replies

Reviews trailers per patch

8 of 47 patches have a Reviewed-by or Acked-by.

PatchSheng YangAlexander Graf
1/47A-b
2/47
3/47
4/47
5/47
6/47
7/47
8/47
9/47
10/47
11/47
12/47
13/47A-b
14/47A-b
15/47A-b
16/47A-b
17/47A-b
18/47
19/47A-b
20/47A-b
21/47
22/47
23/47
24/47
25/47
26/47
27/47
28/47
29/47
30/47
31/47
32/47
33/47
34/47
35/47
36/47
37/47
38/47
39/47
40/47
41/47
42/47
43/47
44/47
45/47
46/47
47/47

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/47] KVM updates for 2.6.32 merge window (4/4)

Fourth and final batch of the 2.6.32 KVM patch queue.

Amit Shah (2):
KVM: ignore reads to perfctr msrs
Documentation: Update KVM list email address

Anthony Liguori (1):
KVM: When switching to a vm8086 task, load segments as 16-bit

Avi Kivity (10):
KVM: VMX: Optimize vmx_get_cpl()
x86: Export kmap_atomic_to_page()
KVM: SVM: Drop tlb flush workaround in npt
KVM: Move #endif KVM_CAP_IRQ_ROUTING to correct place
KVM: VMX: Adjust rflags if in real mode emulation
KVM: Rename x86_emulate.c to emulate.c
KVM: Add __KERNEL__ guards to exported headers
KVM: Add missing #include
KVM: Protect update_cr8_intercept() when running without an apic
KVM: Document KVM_CAP_IRQCHIP

Bartlomiej Zolnierkiewicz (1):
KVM: remove superfluous NULL pointer check in
kvm_inject_pit_timer_irqs()

Gleb Natapov (4):
KVM: Call kvm_vcpu_kick() inside pic spinlock
KVM: Call ack notifiers from PIC when guest OS acks an IRQ.
KVM: Replace pic_lock()/pic_unlock() with direct call to spinlock
functions
KVM: Update cr8 intercept when APIC TPR is changed by userspace

Izik Eidus (1):
KVM: MMU: make __kvm_mmu_free_some_pages handle empty list

Jan Kiszka (1):
KVM: x86: Disallow hypercalls for guest callers in rings > 0

Joerg Roedel (21):
KVM: SVM: add helper functions for global interrupt flag
KVM: SVM: optimize nested #vmexit
KVM: SVM: optimize nested vmrun
KVM: SVM: copy only necessary parts of the control area on
vmrun/vmexit
KVM: SVM: complete interrupts after handling nested exits
KVM: SVM: move nested svm state into seperate struct
KVM: SVM: cache nested intercepts
KVM: SVM: consolidate nested_svm_exit_handled
KVM: SVM: do nested vmexit in nested_svm_exit_handled
KVM: SVM: simplify nested_svm_check_exception
KVM: SVM: get rid of nested_svm_vmexit_real
KVM: SVM: clean up nested_svm_exit_handled_msr
KVM: SVM: clean up nestec vmload/vmsave paths
KVM: SVM: clean up nested vmrun path
KVM: SVM: remove nested_svm_do and helper functions
KVM: SVM: handle errors in vmrun emulation path appropriatly
KVM: SVM: move special nested exit handling to separate function
KVM: SVM: remove unnecessary is_nested check from svm_cpu_run
KVM: SVM: move nested_svm_intr main logic out of if-clause
KVM: SVM: check for nested VINTR flag in svm_interrupt_allowed
KVM: SVM: enable nested svm by default

Marcelo Tosatti (1):
KVM: MMU: fix bogus alloc_mmu_pages assignment

Michael S. Tsirkin (1):
KVM: export kvm_para.h

Mikhail Ershov (1):
KVM: Use kvm_{read,write}_guest_virt() to read and write segment
descriptors

Mohammed Gamal (1):
KVM: x86 emulator: Add adc and sbb missing decoder flags

Roel Kluin (1):
KVM: fix EFER read buffer overflow

Sheng Yang (1):
KVM: VMX: Fix EPT with WP bit change during paging

 Documentation/ioctl/ioctl-number.txt               |    2 +-
 Documentation/kvm/api.txt                          |   76 +++
 arch/ia64/include/asm/kvm_para.h                   |    4 +
 arch/s390/include/asm/kvm_para.h                   |    4 +
 .../asm/{kvm_x86_emulate.h => kvm_emulate.h}       |    0
 arch/x86/include/asm/kvm_host.h                    |    2 +-
 arch/x86/include/asm/kvm_para.h                    |    2 +
 arch/x86/kvm/Makefile                              |    2 +-
 arch/x86/kvm/{x86_emulate.c => emulate.c}          |    8 +-
 arch/x86/kvm/i8254.c                               |    2 +-
 arch/x86/kvm/i8259.c                               |   64 +--
 arch/x86/kvm/irq.h                                 |    1 -
 arch/x86/kvm/mmu.c                                 |   11 +-
 arch/x86/kvm/svm.c                                 |  650 +++++++++++---------
 arch/x86/kvm/vmx.c                                 |   25 +-
 arch/x86/kvm/x86.c                                 |   35 +-
 arch/x86/mm/highmem_32.c                           |    1 +
 include/asm-generic/Kbuild.asm                     |    5 +
 include/linux/Kbuild                               |    4 +
 include/linux/kvm_para.h                           |    1 +
 virt/kvm/kvm_main.c                                |    2 +-
 21 files changed, 525 insertions(+), 376 deletions(-)
 rename arch/x86/include/asm/{kvm_x86_emulate.h => kvm_emulate.h} (100%)
 rename arch/x86/kvm/{x86_emulate.c => emulate.c} (99%)