Skip to content
Snippets Groups Projects
Commit 3dc3edcc authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov
Browse files

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

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2119111

commit bf465ca8
Author: Arnaldo Carvalho de Melo <acme@redhat.com>
Date:   Sun May 9 09:39:02 2021 -0300

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

    To pick the changes in:

      8a061562 ("RISC-V: KVM: Add extensible CSR emulation framework")
      f5ecfee9 ("KVM: s390: resetting the Topology-Change-Report")
      450a5639 ("KVM: stats: Fix value for KVM_STATS_UNIT_MAX for boolean stats")
      1b870fa5 ("kvm: stats: tell userspace which values are boolean")
      db1c875e ("KVM: s390: add KVM_S390_ZPCI_OP to manage guest zPCI devices")
      94dfc73e ("treewide: uapi: Replace zero-length arrays with flexible-array members")
      084cc29f ("KVM: x86/MMU: Allow NX huge pages to be disabled on a per-vm basis")
      2f4073e0 ("KVM: VMX: Enable Notify VM exit")
      ed235117 ("KVM: x86: Extend KVM_{G,S}ET_VCPU_EVENTS to support pending triple fault")
      e9bf3acb ("KVM: s390: Add KVM_CAP_S390_PROTECTED_DUMP")
      8aba0958 ("KVM: s390: Add CPU dump functionality")
      0460eb35 ("KVM: s390: Add configuration dump functionality")
      fe9a93e0 ("KVM: s390: pv: Add query dump information")
      35d02493 ("KVM: s390: pv: Add query interface")
      c24a950e ("KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES")
      ffbb61d0 ("KVM: x86: Accept KVM_[GS]ET_TSC_KHZ as a VM ioctl.")
      661a20fa ("KVM: x86/xen: Advertise and document KVM_XEN_HVM_CONFIG_EVTCHN_SEND")
      fde0451b ("KVM: x86/xen: Support per-vCPU event channel upcall via local APIC")
      28d1629f ("KVM: x86/xen: Kernel acceleration for XENVER_version")
      53639526 ("KVM: x86/xen: handle PV timers oneshot mode")
      942c2490 ("KVM: x86/xen: Add KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID")
      2fd6df2f ("KVM: x86/xen: intercept EVTCHNOP_send from guests")
      35025735 ("KVM: x86/xen: Support direct injection of event channel events")

    That just rebuilds perf, as these patches add just an ioctl that is S390
    specific and may clash with other arches, so are so far being excluded
    in the harvester script:

      $ 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
      $ grep 390 tools/perf/trace/beauty/kvm_ioctl.sh
            egrep -v " ((ARM|PPC|S390)_|[GS]ET_(DEBUGREGS|PIT2|XSAVE|TSC_KHZ)|CREATE_SPAPR_TCE_64)" | \
      $

    This is also by now used by tools/testing/selftests/kvm/, a simple test
    build succeeded.

    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

    Cc: Anup Patel <anup@brainfault.org>
    Cc: Ben Gardon <bgardon@google.com>
    Cc: Chenyi Qiang <chenyi.qiang@intel.com>
    Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
    Cc: David Woodhouse <dwmw@amazon.co.uk>
    Cc: Gustavo A. R. Silva <gustavoars@kernel.org>
    Cc: Janosch Frank <frankja@linux.ibm.com>
    Cc: João Martins <joao.m.martins@oracle.com>
    Cc: Matthew Rosato <mjrosato@linux.ibm.com>
    Cc: Oliver Upton <oupton@google.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Peter Gonda <pgonda@google.com>
    Cc: Pierre Morel <pmorel@linux.ibm.com>
    Cc: Tao Xu <tao3.xu@intel.com>
    Link: https://lore.kernel.org/lkml/YvzuryClcn%2FvA0Gn@kernel.org/


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>

Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
parent 3f4c9741
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment