Re: [RFC PATCH v11 08/29] KVM: Introduce per-page memory attributes

From
Xu Yilun <yilun.xu@intel.com>
Date
2023-07-27 03:27:38
Also in
kvm, kvm-riscv, kvmarm, linux-arm-kernel, linux-fsdevel, linux-mips, linux-mm, linux-riscv, linux-security-module, lkml
Reply to
Sean Christopherson, 2023-07-26
On 2023-07-26 at 08:59:53 -0700, Sean Christopherson wrote:
On Mon, Jul 24, 2023, Xu Yilun wrote:
quoted
On 2023-07-18 at 16:44:51 -0700, Sean Christopherson wrote:
quoted
+	if (WARN_ON_ONCE(start == end))
+		return -EINVAL;
Also, is this check possible to be hit? Maybe remove it?
It should be impossible to, hence the WARN.  I added the check for two reasons:
(1) to help document that end is exclusive, and (2) to guard against future bugs.
Understood. I'm good to it.
Thread (108 messages) 108 messages, 20 authors, last reply 2023-09-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help