History

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull KVM updates from Paolo Bonzini: "4.11 is going to be a relatively large release for KVM, with a little over 200 commits and noteworthy changes for most architectures. ARM: - GICv3 save/restore - cache flushing fixes - working MSI injection for GICv3 ITS - physical timer emulation MIPS: - various improvements under the hood - support for SMP guests - a large rewrite of MMU emulation. KVM MIPS can now use MMU notifiers to support copy-on-write, KSM, idle page tracking, swapping, ballooning and everything else. KVM_CAP_READONLY_MEM is also supported, so that writes to some memory regions can be treated as MMIO. The new MMU also paves the way for hardware virtualization support. PPC: - support for POWER9 using the radix-tree MMU for host and guest - resizable hashed page table - bugfixes. s390: - expose more features to the guest - more SIMD extensions - instruction execution protection - ESOP2 x86: - improved hashing in the MMU - faster PageLRU tracking for Intel CPUs without EPT A/D bits - some refactoring of nested VMX entry/exit code, preparing for live migration support of nested hypervisors - expose yet another AVX512 CPUID bit - host-to-guest PTP support - refactoring of interrupt injection, with some optimizations thrown in and some duct tape removed. - remove lazy FPU handling - optimizations of user-mode exits - optimizations of vcpu_is_preempted() for KVM guests generic: - alternative signaling mechanism that doesn't pound on tsk->sighand->siglock" * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (195 commits) x86/kvm: Provide optimized version of vcpu_is_preempted() for x86-64 x86/paravirt: Change vcp_is_preempted() arg type to long KVM: VMX: use correct vmcs_read/write for guest segment selector/base x86/kvm/vmx: Defer TR reload after VM exit x86/asm/64: Drop __cacheline_aligned from struct x86_hw_tss x86/kvm/vmx: Simplify segment_base() x86/kvm/vmx: Get rid of segment_base() on 64-bit kernels x86/kvm/vmx: Don't fetch the TSS base from the GDT x86/asm: Define the kernel TSS limit in a macro kvm: fix page struct leak in handle_vmon KVM: PPC: Book3S HV: Disable HPT resizing on POWER9 for now KVM: Return an error code only as a constant in kvm_get_dirty_log() KVM: Return an error code only as a constant in kvm_get_dirty_log_protect() KVM: Return directly after a failed copy_from_user() in kvm_vm_compat_ioctl() KVM: x86: remove code for lazy FPU handling KVM: race-free exit from KVM_RUN without POSIX signals KVM: PPC: Book3S HV: Turn "KVM guest htab" message into a debug message KVM: PPC: Book3S PR: Ratelimit copy data failure error messages KVM: Support vCPU-based gfn->hva cache KVM: use separate generations for each address space ...

Linus Torvalds committed 9 years ago

Commit fd7e9a82 parents 5066e4a dd0fd8b110 files · +7277 −2968Browse files

Showing the changes to include/uapi/linux (2 of 110 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/kvm.h +14 −1
  2. include/uapi/linux/kvm_para.h +2 −0
include/uapi/linux/kvm.h+14−1
@@ -218,7 +218,8 @@ struct kvm_hyperv_exit { · 217 unmodified lines
218struct kvm_run {218struct kvm_run {
219 /* in */219 /* in */
220 __u8 request_interrupt_window;220 __u8 request_interrupt_window;
221 __u8 padding1[7];221 __u8 immediate_exit;
222 __u8 padding1[6];
222 223
223 /* out */224 /* out */
224 __u32 exit_reason;225 __u32 exit_reason;
@@ -685,6 +686,13 @@ struct kvm_ppc_smmu_info { · 460 unmodified lines
685 struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ];686 struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ];
686};687};
687 688
689/* for KVM_PPC_RESIZE_HPT_{PREPARE,COMMIT} */
690struct kvm_ppc_resize_hpt {
691 __u64 flags;
692 __u32 shift;
693 __u32 pad;
694};
695
688#define KVMIO 0xAE696#define KVMIO 0xAE
689 697
690/* machine type bits, to be used as argument to KVM_CREATE_VM */698/* machine type bits, to be used as argument to KVM_CREATE_VM */
@@ -871,8 +879,10 @@ struct kvm_ppc_smmu_info { · 180 unmodified lines
871#define KVM_CAP_S390_USER_INSTR0 130879#define KVM_CAP_S390_USER_INSTR0 130
872#define KVM_CAP_MSI_DEVID 131880#define KVM_CAP_MSI_DEVID 131
873#define KVM_CAP_PPC_HTM 132881#define KVM_CAP_PPC_HTM 132
882#define KVM_CAP_SPAPR_RESIZE_HPT 133
874#define KVM_CAP_PPC_MMU_RADIX 134883#define KVM_CAP_PPC_MMU_RADIX 134
875#define KVM_CAP_PPC_MMU_HASH_V3 135884#define KVM_CAP_PPC_MMU_HASH_V3 135
885#define KVM_CAP_IMMEDIATE_EXIT 136
876 886
877#ifdef KVM_CAP_IRQ_ROUTING887#ifdef KVM_CAP_IRQ_ROUTING
878 888
@@ -1189,6 +1199,9 @@ struct kvm_s390_ucas_mapping { · 310 unmodified lines
1189#define KVM_ARM_SET_DEVICE_ADDR _IOW(KVMIO, 0xab, struct kvm_arm_device_addr)1199#define KVM_ARM_SET_DEVICE_ADDR _IOW(KVMIO, 0xab, struct kvm_arm_device_addr)
1190/* Available with KVM_CAP_PPC_RTAS */1200/* Available with KVM_CAP_PPC_RTAS */
1191#define KVM_PPC_RTAS_DEFINE_TOKEN _IOW(KVMIO, 0xac, struct kvm_rtas_token_args)1201#define KVM_PPC_RTAS_DEFINE_TOKEN _IOW(KVMIO, 0xac, struct kvm_rtas_token_args)
1202/* Available with KVM_CAP_SPAPR_RESIZE_HPT */
1203#define KVM_PPC_RESIZE_HPT_PREPARE _IOR(KVMIO, 0xad, struct kvm_ppc_resize_hpt)
1204#define KVM_PPC_RESIZE_HPT_COMMIT _IOR(KVMIO, 0xae, struct kvm_ppc_resize_hpt)
1192/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_HASH_MMU_V3 */1205/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_HASH_MMU_V3 */
1193#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)1206#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
1194/* Available with KVM_CAP_PPC_RADIX_MMU */1207/* Available with KVM_CAP_PPC_RADIX_MMU */
include/uapi/linux/kvm_para.h+2−0
@@ -14,6 +14,7 @@ · 13 unmodified lines
14#define KVM_EFAULT EFAULT14#define KVM_EFAULT EFAULT
15#define KVM_E2BIG E2BIG15#define KVM_E2BIG E2BIG
16#define KVM_EPERM EPERM16#define KVM_EPERM EPERM
17#define KVM_EOPNOTSUPP 95
17 18
18#define KVM_HC_VAPIC_POLL_IRQ 119#define KVM_HC_VAPIC_POLL_IRQ 1
19#define KVM_HC_MMU_OP 220#define KVM_HC_MMU_OP 2
@@ -23,6 +24,7 @@ · 3 unmodified lines
23#define KVM_HC_MIPS_GET_CLOCK_FREQ 624#define KVM_HC_MIPS_GET_CLOCK_FREQ 6
24#define KVM_HC_MIPS_EXIT_VM 725#define KVM_HC_MIPS_EXIT_VM 7
25#define KVM_HC_MIPS_CONSOLE_OUTPUT 826#define KVM_HC_MIPS_CONSOLE_OUTPUT 8
27#define KVM_HC_CLOCK_PAIRING 9
26 28
27/*29/*
28 * hypercalls use architecture specific30 * hypercalls use architecture specific

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t