History

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

Pull kvm updates from Paolo Bonzini: "ARM: - Proper emulation of the OSLock feature of the debug architecture - Scalibility improvements for the MMU lock when dirty logging is on - New VMID allocator, which will eventually help with SVA in VMs - Better support for PMUs in heterogenous systems - PSCI 1.1 support, enabling support for SYSTEM_RESET2 - Implement CONFIG_DEBUG_LIST at EL2 - Make CONFIG_ARM64_ERRATUM_2077057 default y - Reduce the overhead of VM exit when no interrupt is pending - Remove traces of 32bit ARM host support from the documentation - Updated vgic selftests - Various cleanups, doc updates and spelling fixes RISC-V: - Prevent KVM_COMPAT from being selected - Optimize __kvm_riscv_switch_to() implementation - RISC-V SBI v0.3 support s390: - memop selftest - fix SCK locking - adapter interruptions virtualization for secure guests - add Claudio Imbrenda as maintainer - first step to do proper storage key checking x86: - Continue switching kvm_x86_ops to static_call(); introduce static_call_cond() and __static_call_ret0 when applicable. - Cleanup unused arguments in several functions - Synthesize AMD 0x80000021 leaf - Fixes and optimization for Hyper-V sparse-bank hypercalls - Implement Hyper-V's enlightened MSR bitmap for nested SVM - Remove MMU auditing - Eager splitting of page tables (new aka "TDP" MMU only) when dirty page tracking is enabled - Cleanup the implementation of the guest PGD cache - Preparation for the implementation of Intel IPI virtualization - Fix some segment descriptor checks in the emulator - Allow AMD AVIC support on systems with physical APIC ID above 255 - Better API to disable virtualization quirks - Fixes and optimizations for the zapping of page tables: - Zap roots in two passes, avoiding RCU read-side critical sections that last too long for very large guests backed by 4 KiB SPTEs. - Zap invalid and defunct roots asynchronously via concurrency-managed work queue. - Allowing yielding when zapping TDP MMU roots in response to the root's last reference being put. - Batch more TLB flushes with an RCU trick. Whoever frees the paging structure now holds RCU as a proxy for all vCPUs running in the guest, i.e. to prolongs the grace period on their behalf. It then kicks the the vCPUs out of guest mode before doing rcu_read_unlock(). Generic: - Introduce __vcalloc and use it for very large allocations that need memcg accounting" * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (246 commits) KVM: use kvcalloc for array allocations KVM: x86: Introduce KVM_CAP_DISABLE_QUIRKS2 kvm: x86: Require const tsc for RT KVM: x86: synthesize CPUID leaf 0x80000021h if useful KVM: x86: add support for CPUID leaf 0x80000021 KVM: x86: do not use KVM_X86_OP_OPTIONAL_RET0 for get_mt_mask Revert "KVM: x86/mmu: Zap only TDP MMU leafs in kvm_zap_gfn_range()" kvm: x86/mmu: Flush TLB before zap_gfn_range releases RCU KVM: arm64: fix typos in comments KVM: arm64: Generalise VM features into a set of flags KVM: s390: selftests: Add error memop tests KVM: s390: selftests: Add more copy memop tests KVM: s390: selftests: Add named stages for memop test KVM: s390: selftests: Add macro as abstraction for MEM_OP KVM: s390: selftests: Split memop tests KVM: s390x: fix SCK locking RISC-V: KVM: Implement SBI HSM suspend call RISC-V: KVM: Add common kvm_riscv_vcpu_wfi() function RISC-V: Add SBI HSM suspend related defines RISC-V: KVM: Implement SBI v0.3 SRST extension ...

Linus Torvalds committed 4 years ago

Commit 1ebdbeb2 parents efee6c7 c9b8fec143 files · +6279 −2516Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/kvm.h +13 −2
  2. include/uapi/linux/psci.h +4 −0
include/uapi/linux/kvm.h+13−2
@@ -562,9 +562,12 @@ struct kvm_s390_mem_op { · 561 unmodified lines
562562 __u32 op; /* type of operation */
563563 __u64 buf; /* buffer in userspace */
564564 union {
565− __u8 ar; /* the access register number */
565+ struct {
566+ __u8 ar; /* the access register number */
567+ __u8 key; /* access key, ignored if flag unset */
568+ };
566569 __u32 sida_offset; /* offset into the sida */
567− __u8 reserved[32]; /* should be set to 0 */
570+ __u8 reserved[32]; /* ignored */
568571 };
569572 };
570573 /* types for kvm_s390_mem_op->op */
@@ -572,9 +575,12 @@ struct kvm_s390_mem_op { · 1 unmodified line
572575 #define KVM_S390_MEMOP_LOGICAL_WRITE 1
573576 #define KVM_S390_MEMOP_SIDA_READ 2
574577 #define KVM_S390_MEMOP_SIDA_WRITE 3
578+#define KVM_S390_MEMOP_ABSOLUTE_READ 4
579+#define KVM_S390_MEMOP_ABSOLUTE_WRITE 5
575580 /* flags for kvm_s390_mem_op->flags */
576581 #define KVM_S390_MEMOP_F_CHECK_ONLY (1ULL << 0)
577582 #define KVM_S390_MEMOP_F_INJECT_EXCEPTION (1ULL << 1)
583+#define KVM_S390_MEMOP_F_SKEY_PROTECTION (1ULL << 2)
578584
579585 /* for KVM_INTERRUPT */
580586 struct kvm_interrupt {
@@ -1135,6 +1141,9 @@ struct kvm_ppc_resize_hpt { · 554 unmodified lines
11351141 #define KVM_CAP_XSAVE2 208
11361142 #define KVM_CAP_SYS_ATTRIBUTES 209
11371143 #define KVM_CAP_PPC_AIL_MODE_3 210
1144+#define KVM_CAP_S390_MEM_OP_EXTENSION 211
1145+#define KVM_CAP_PMU_CAPABILITY 212
1146+#define KVM_CAP_DISABLE_QUIRKS2 213
11381147
11391148 #ifdef KVM_CAP_IRQ_ROUTING
11401149
@@ -1971,6 +1980,8 @@ struct kvm_dirty_gfn { · 830 unmodified lines
19711980 #define KVM_BUS_LOCK_DETECTION_OFF (1 << 0)
19721981 #define KVM_BUS_LOCK_DETECTION_EXIT (1 << 1)
19731982
1983+#define KVM_PMU_CAP_DISABLE (1 << 0)
1984+
19741985 /**
19751986 * struct kvm_stats_header - Header of per vm/vcpu binary statistics data.
19761987 * @flags: Some extra information for header, always 0 for now.
include/uapi/linux/psci.h+4−0
@@ -82,6 +82,10 @@ · 81 unmodified lines
8282 #define PSCI_0_2_TOS_UP_NO_MIGRATE 1
8383 #define PSCI_0_2_TOS_MP 2
8484
85+/* PSCI v1.1 reset type encoding for SYSTEM_RESET2 */
86+#define PSCI_1_1_RESET_TYPE_SYSTEM_WARM_RESET 0
87+#define PSCI_1_1_RESET_TYPE_VENDOR_START 0x80000000U
88+
8589 /* PSCI version decoding (independent of PSCI version) */
8690 #define PSCI_VERSION_MAJOR_SHIFT 16
8791 #define PSCI_VERSION_MINOR_MASK \

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