History

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

Pull KVM fixes from Paolo Bonzini: - Doc fixes - selftests fixes - Add runstate information to the new Xen support - Allow compiling out the Xen interface - 32-bit PAE without EPT bugfix - NULL pointer dereference bugfix * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: SVM: Clear the CR4 register on reset KVM: x86/xen: Add support for vCPU runstate information KVM: x86/xen: Fix return code when clearing vcpu_info and vcpu_time_info selftests: kvm: Mmap the entire vcpu mmap area KVM: Documentation: Fix index for KVM_CAP_PPC_DAWR1 KVM: x86: allow compiling out the Xen hypercall interface KVM: xen: flush deferred static key before checking it KVM: x86/mmu: Set SPTE_AD_WRPROT_ONLY_MASK if and only if PML is enabled KVM: x86: hyper-v: Fix Hyper-V context null-ptr-deref KVM: x86: remove misplaced comment on active_mmu_pages KVM: Documentation: rectify rst markup in kvm_run->flags Documentation: kvm: fix messy conversion from .txt to .rst

Linus Torvalds committed 5 years ago

Commit cee407c2 parents c5a58f8 9e46f6c13 files · +633 −76Browse files

Showing the changes to include/uapi (1 of 13 files). Show all

Unified · Split

include/uapi/linux/kvm.h+13−0
@@ -1154,6 +1154,7 @@ struct kvm_x86_mce { · 1153 unmodified lines
11541154 #define KVM_XEN_HVM_CONFIG_HYPERCALL_MSR (1 << 0)
11551155 #define KVM_XEN_HVM_CONFIG_INTERCEPT_HCALL (1 << 1)
11561156 #define KVM_XEN_HVM_CONFIG_SHARED_INFO (1 << 2)
1157+#define KVM_XEN_HVM_CONFIG_RUNSTATE (1 << 3)
11571158
11581159 struct kvm_xen_hvm_config {
11591160 __u32 flags;
@@ -1621,12 +1622,24 @@ struct kvm_xen_vcpu_attr { · 461 unmodified lines
16211622 union {
16221623 __u64 gpa;
16231624 __u64 pad[8];
1625+ struct {
1626+ __u64 state;
1627+ __u64 state_entry_time;
1628+ __u64 time_running;
1629+ __u64 time_runnable;
1630+ __u64 time_blocked;
1631+ __u64 time_offline;
1632+ } runstate;
16241633 } u;
16251634 };
16261635
16271636 /* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_SHARED_INFO */
16281637 #define KVM_XEN_VCPU_ATTR_TYPE_VCPU_INFO 0x0
16291638 #define KVM_XEN_VCPU_ATTR_TYPE_VCPU_TIME_INFO 0x1
1639+#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADDR 0x2
1640+#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_CURRENT 0x3
1641+#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_DATA 0x4
1642+#define KVM_XEN_VCPU_ATTR_TYPE_RUNSTATE_ADJUST 0x5
16301643
16311644 /* Secure Encrypted Virtualization command */
16321645 enum sev_cmd_id {