Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1215887

[PATCH RFC 3/3] kvm: add KVM_CAP_IOEVENTFD_PF capability

From "Michael S. Tsirkin" <mst@redhat.com>
Newsgroups linux.kernel
Subject [PATCH RFC 3/3] kvm: add KVM_CAP_IOEVENTFD_PF capability
Date 2015-08-30 11:20 +0200
Message-ID <q36Wm-4GE-17@gated-at.bofh.it> (permalink)
References <q36Wl-4GE-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 include/uapi/linux/kvm.h          | 1 +
 arch/x86/kvm/x86.c                | 1 +
 Documentation/virtual/kvm/api.txt | 7 +++++++
 3 files changed, 9 insertions(+)

diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 716ad4a..4509aa3 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -817,6 +817,7 @@ struct kvm_ppc_smmu_info {
 #define KVM_CAP_DISABLE_QUIRKS 116
 #define KVM_CAP_X86_SMM 117
 #define KVM_CAP_MULTI_ADDRESS_SPACE 118
+#define KVM_CAP_IOEVENTFD_PF 119
 
 #ifdef KVM_CAP_IRQ_ROUTING
 
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c8015fa..f989453 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2629,6 +2629,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
 	case KVM_CAP_IRQ_INJECT_STATUS:
 	case KVM_CAP_IOEVENTFD:
 	case KVM_CAP_IOEVENTFD_NO_LENGTH:
+	case KVM_CAP_IOEVENTFD_PF:
 	case KVM_CAP_PIT2:
 	case KVM_CAP_PIT_STATE2:
 	case KVM_CAP_SET_IDENTITY_MAP_ADDR:
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index a7926a9..85a76ad 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -1618,6 +1618,13 @@ The following flags are defined:
 If datamatch flag is set, the event will be signaled only if the written value
 to the registered address is equal to datamatch in struct kvm_ioeventfd.
 
+If KVM_CAP_IOEVENTFD_NO_LENGTH is present, and when DATAMATCH flag
+is clear, len can be set to 0 to match access of any length.
+
+If KVM_CAP_IOEVENTFD_PF is present, and when DATAMATCH flag
+is clear and len is set to 0, the specified address can overlap
+a read-only memory region (as opposed to an MMIO region).
+
 For virtio-ccw devices, addr contains the subchannel id and datamatch the
 virtqueue index.
 
-- 
MST

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH RFC 0/3] kvm add ioeventfd pf capability "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-30 11:20 +0200
  [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-30 11:20 +0200
    Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2015-08-31 05:10 +0200
      Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-31 09:50 +0200
        Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2015-08-31 10:40 +0200
          Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-31 13:30 +0200
            Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2015-08-31 15:30 +0200
              Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-31 17:00 +0200
    Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations Jason Wang <jasowang@redhat.com> - 2015-09-01 05:40 +0200
      Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations "Michael S. Tsirkin" <mst@redhat.com> - 2015-09-01 06:40 +0200
        Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations Jason Wang <jasowang@redhat.com> - 2015-09-01 06:50 +0200
          Re: [PATCH RFC 1/3] vmx: allow ioeventfd for EPT violations "Michael S. Tsirkin" <mst@redhat.com> - 2015-09-01 09:00 +0200
  [PATCH RFC 2/3] svm: allow ioeventfd for NPT page faults "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-30 11:20 +0200
  [PATCH RFC 3/3] kvm: add KVM_CAP_IOEVENTFD_PF capability "Michael S. Tsirkin" <mst@redhat.com> - 2015-08-30 11:20 +0200

csiph-web