From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYoNR-0007Id-CS for qemu-devel@nongnu.org; Fri, 29 Jun 2018 04:03:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYoNO-0006nU-86 for qemu-devel@nongnu.org; Fri, 29 Jun 2018 04:03:33 -0400 Received: from relay.sw.ru ([185.231.240.75]:58254) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fYoNO-0006kn-0D for qemu-devel@nongnu.org; Fri, 29 Jun 2018 04:03:30 -0400 From: Denis Plotnikov Date: Fri, 29 Jun 2018 11:03:18 +0300 Message-Id: <20180629080320.320144-6-dplotnikov@virtuozzo.com> In-Reply-To: <20180629080320.320144-1-dplotnikov@virtuozzo.com> References: <20180629080320.320144-1-dplotnikov@virtuozzo.com> Subject: [Qemu-devel] [PATCH v0 5/7] kvm: add failed memeory access exit reason List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dgilbert@redhat.com, quintela@redhat.com, pbonzini@redhat.com Cc: qemu-devel@nongnu.org The patch allows qemu to be aware of how to read kvm failed memeory access. This is a temporary patch. It sould be removed on importing the kvm failed memeory access exit from the linux branch. Signed-off-by: Denis Plotnikov --- linux-headers/linux/kvm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index d92c9b2f0e..ea63b681d8 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -235,6 +235,7 @@ struct kvm_hyperv_exit { #define KVM_EXIT_S390_STSI 25 #define KVM_EXIT_IOAPIC_EOI 26 #define KVM_EXIT_HYPERV 27 +#define KVM_EXIT_FAIL_MEM_ACCESS 28 /* For KVM_EXIT_INTERNAL_ERROR */ /* Emulate instruction failed. */ @@ -392,6 +393,10 @@ struct kvm_run { } eoi; /* KVM_EXIT_HYPERV */ struct kvm_hyperv_exit hyperv; + /* KVM_EXIT_FAIL_MEM_ACCESS */ + struct { + __u64 hva; + } fail_mem_access; /* Fix the size of the union. */ char padding[256]; }; -- 2.17.0