tools headers UAPI: Sync kvm.h headers with the kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Feb 2021 12:56:50 +0000 (09:56 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Feb 2021 12:56:50 +0000 (09:56 -0300)
commit84b7725536d82e99b7564a079b8627f3be692a13
tree206c9374c6d77721435496c6c4563ce79ec6a678
parent20e32b9cb0c61c9264efcb16d8e3a80d3738ff2b
tools headers UAPI: Sync kvm.h headers with the kernel sources

To pick the changes in:

  d9a47edabc4f9481 ("KVM: PPC: Book3S HV: Introduce new capability for 2nd DAWR")
  8d4e7e80838f45d3 ("KVM: x86: declare Xen HVM shared info capability and add test case")
  40da8ccd724f7ca2 ("KVM: x86/xen: Add event channel interrupt vector upcall")

These new IOCTLs are now supported on 'perf trace':

  $ tools/perf/trace/beauty/kvm_ioctl.sh > before
  $ cp include/uapi/linux/kvm.h tools/include/uapi/linux/kvm.h
  $ tools/perf/trace/beauty/kvm_ioctl.sh > after
  $ diff -u before after
  --- before 2021-02-23 09:55:46.229058308 -0300
  +++ after 2021-02-23 09:55:57.509308058 -0300
  @@ -91,6 +91,10 @@
    [0xc1] = "GET_SUPPORTED_HV_CPUID",
    [0xc6] = "X86_SET_MSR_FILTER",
    [0xc7] = "RESET_DIRTY_RINGS",
  + [0xc8] = "XEN_HVM_GET_ATTR",
  + [0xc9] = "XEN_HVM_SET_ATTR",
  + [0xca] = "XEN_VCPU_GET_ATTR",
  + [0xcb] = "XEN_VCPU_SET_ATTR",
    [0xe0] = "CREATE_DEVICE",
    [0xe1] = "SET_DEVICE_ATTR",
    [0xe2] = "GET_DEVICE_ATTR",
  $

Addressing 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

Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: Paul Mackerras <paulus@ozlabs.org>
Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/uapi/linux/kvm.h