History

tools headers UAPI: Sync linux/kvm.h with the kernel sources

To pick the changes in: 86bdf3ebcfe1ded0 ("KVM: Support dirty ring in conjunction with bitmap") That just rebuilds perf, as these patches don't add any new KVM ioctl to be harvested for the the 'perf trace' ioctl syscall argument beautifiers. This is also by now used by tools/testing/selftests/kvm/, a simple test build didn't succeed, but for another reason: lib/kvm_util.c: In function ‘vm_enable_dirty_ring’: lib/kvm_util.c:125:30: error: ‘KVM_CAP_DIRTY_LOG_RING_ACQ_REL’ undeclared (first use in this function); did you mean ‘KVM_CAP_DIRTY_LOG_RING’? 125 | if (vm_check_cap(vm, KVM_CAP_DIRTY_LOG_RING_ACQ_REL)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | KVM_CAP_DIRTY_LOG_RING I'll send a separate patch for that. This silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h' diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h

Arnaldo Carvalho de Melo committed 5 years ago

Commit b235e5b1 parent 6d5edd11 file · +12 −1Browse files

Showing the changes to tools/include/uapi/linux (1 of 1 file). Show all

Unified · Split

tools/include/uapi/linux/kvm.h+12−1
@@ -98,7 +98,7 @@ struct kvm_userspace_memory_region { · 97 unmodified lines
9898 /*
9999 * The bit 0 ~ bit 15 of kvm_userspace_memory_region::flags are visible for
100100 * userspace, other bits are reserved for kvm internal use which are defined
101− *in include/linux/kvm_host.h.
101+ * in include/linux/kvm_host.h.
102102 */
103103 #define KVM_MEM_LOG_DIRTY_PAGES (1UL << 0)
104104 #define KVM_MEM_READONLY (1UL << 1)
@@ -477,6 +477,9 @@ struct kvm_run { · 372 unmodified lines
477477 #define KVM_MSR_EXIT_REASON_INVAL (1 << 0)
478478 #define KVM_MSR_EXIT_REASON_UNKNOWN (1 << 1)
479479 #define KVM_MSR_EXIT_REASON_FILTER (1 << 2)
480+#define KVM_MSR_EXIT_REASON_VALID_MASK (KVM_MSR_EXIT_REASON_INVAL | \
481+ KVM_MSR_EXIT_REASON_UNKNOWN | \
482+ KVM_MSR_EXIT_REASON_FILTER)
480483 __u32 reason; /* kernel -> user */
481484 __u32 index; /* kernel -> user */
482485 __u64 data; /* kernel <-> user */
@@ -1170,6 +1173,8 @@ struct kvm_ppc_resize_hpt { · 687 unmodified lines
11701173 #define KVM_CAP_S390_ZPCI_OP 221
11711174 #define KVM_CAP_S390_CPU_TOPOLOGY 222
11721175 #define KVM_CAP_DIRTY_LOG_RING_ACQ_REL 223
1176+#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 224
1177+#define KVM_CAP_DIRTY_LOG_RING_WITH_BITMAP 225
11731178
11741179 #ifdef KVM_CAP_IRQ_ROUTING
11751180
@@ -1259,6 +1264,7 @@ struct kvm_x86_mce { · 83 unmodified lines
12591264 #define KVM_XEN_HVM_CONFIG_RUNSTATE (1 << 3)
12601265 #define KVM_XEN_HVM_CONFIG_EVTCHN_2LEVEL (1 << 4)
12611266 #define KVM_XEN_HVM_CONFIG_EVTCHN_SEND (1 << 5)
1267+#define KVM_XEN_HVM_CONFIG_RUNSTATE_UPDATE_FLAG (1 << 6)
12621268
12631269 struct kvm_xen_hvm_config {
12641270 __u32 flags;
@@ -1726,6 +1732,8 @@ enum pv_cmd_id { · 461 unmodified lines
17261732 KVM_PV_UNSHARE_ALL,
17271733 KVM_PV_INFO,
17281734 KVM_PV_DUMP,
1735+ KVM_PV_ASYNC_CLEANUP_PREPARE,
1736+ KVM_PV_ASYNC_CLEANUP_PERFORM,
17291737 };
17301738
17311739 struct kvm_pv_cmd {
@@ -1756,6 +1764,7 @@ struct kvm_xen_hvm_attr { · 24 unmodified lines
17561764 union {
17571765 __u8 long_mode;
17581766 __u8 vector;
1767+ __u8 runstate_update_flag;
17591768 struct {
17601769 __u64 gfn;
17611770 } shared_info;
@@ -1796,6 +1805,8 @@ struct kvm_xen_hvm_attr { · 34 unmodified lines
17961805 /* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_EVTCHN_SEND */
17971806 #define KVM_XEN_ATTR_TYPE_EVTCHN 0x3
17981807 #define KVM_XEN_ATTR_TYPE_XEN_VERSION 0x4
1808+/* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_RUNSTATE_UPDATE_FLAG */
1809+#define KVM_XEN_ATTR_TYPE_RUNSTATE_UPDATE_FLAG 0x5
17991810
18001811 /* Per-vCPU Xen attributes */
18011812 #define KVM_XEN_VCPU_GET_ATTR _IOWR(KVMIO, 0xca, struct kvm_xen_vcpu_attr)

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