From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5DB5C4167B for ; Fri, 3 Nov 2023 04:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2cv/wW4uSfszk9g0bOENxDJi3H0aV2oaGUiXbexcKyo=; b=FDYXaLxfMeqp80 YQBvYNtI+87ou2zxsI53Vm+9KMvDqokvhXVzwOsIta0Op5+oeXjwJR4vzLhLDJyspplMIPmcJMjZk zDyDmiHRKFP3KSBJw6Y9VogDUBhC70ZatMZXelkAF3V6Gww/R+o1kuZ3hIQuSdhxymuY3axWaTL1w Sb/OIJr4oGdyBJ5s1L7MxlwD8JWvN5Q9wmGoV6xsmGERjOiaIwyiPMWd+WBwDrH27lmSQYDJdmRbX +Q2ZM5eEuDHzB5BOn7PDNbn5VtgfqVzlA2G1YDWUdP4ypByk0Wm5mEap2bo9EFxrfRB9HwmG9fqTH KvMs7SnxegHjIWTlrg5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qylWF-00AijR-1k; Fri, 03 Nov 2023 04:10:51 +0000 Received: from mgamail.intel.com ([192.55.52.120]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qylW9-00Aiho-2s; Fri, 03 Nov 2023 04:10:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698984645; x=1730520645; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=juHXPhfl2UOyfQDlVnje9FjGKXxO1moD004mEr2wKcQ=; b=oHPxE1ypkL2a/9YYG+fekNYzyMkCqRZqpAeHQnQvu3mT7uxoUwsRX5Wq r8np6B8zgHeL0XvcyWsLZUEJovzzI7S+u51xFGw2SmflA/OnerqBXQQ6O 8Rq8kOPtVm2L20B4sNoQGTWiqPlTsrGEm/bydQQeX/4sED41OicjjVJlG O343ZTiXhGyPyF41XPzoRXQMavNZn6+3dctQwxvnHeD+PNwWJCyC0MyLG C6bL5VRu7evKADaktAIehdvw6rQ9bHEIAzrL/feoTtoLkKgqEeW7YXPEH M4bhJJ+sIj4ya7K/braYEpisR6AIjNj8UlLH1RYX24gTW2oYzyy7EcgOh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="387762860" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="387762860" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2023 21:10:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="1008694807" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="1008694807" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmsmga006.fm.intel.com with ESMTP; 02 Nov 2023 21:10:28 -0700 Date: Fri, 3 Nov 2023 12:09:01 +0800 From: Xu Yilun To: Sean Christopherson Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Viro , Christian Brauner , "Matthew Wilcox (Oracle)" , Andrew Morton , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiaoyao Li , Xu Yilun , Chao Peng , Fuad Tabba , Jarkko Sakkinen , Anish Moorthy , David Matlack , Yu Zhang , Isaku Yamahata , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Vlastimil Babka , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" Subject: Re: [PATCH v13 09/35] KVM: Add KVM_EXIT_MEMORY_FAULT exit to report faults to userspace Message-ID: References: <20231027182217.3615211-1-seanjc@google.com> <20231027182217.3615211-10-seanjc@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231027182217.3615211-10-seanjc@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231102_211045_966007_A81485B0 X-CRM114-Status: GOOD ( 12.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Oct 27, 2023 at 11:21:51AM -0700, Sean Christopherson wrote: > --- a/Documentation/virt/kvm/api.rst > +++ b/Documentation/virt/kvm/api.rst > @@ -6723,6 +6723,26 @@ array field represents return values. The userspace should update the return > values of SBI call before resuming the VCPU. For more details on RISC-V SBI > spec refer, https://github.com/riscv/riscv-sbi-doc. > > +:: > + > + /* KVM_EXIT_MEMORY_FAULT */ > + struct { > + __u64 flags; > + __u64 gpa; > + __u64 size; > + } memory; ^ Should update to "memory_fault" to align with other places. [...] > @@ -520,6 +521,12 @@ struct kvm_run { > #define KVM_NOTIFY_CONTEXT_INVALID (1 << 0) > __u32 flags; > } notify; > + /* KVM_EXIT_MEMORY_FAULT */ > + struct { > + __u64 flags; > + __u64 gpa; > + __u64 size; > + } memory_fault; > /* Fix the size of the union. */ > char padding[256]; > }; Thanks, Yilun > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel