From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A31F1EA84 for ; Wed, 4 Feb 2026 00:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770163862; cv=none; b=c2IMrqTCHR+C8Y+BttZy00SqA0+bJL3EeLKvSuAg/ZFrntgNSfVtGFOgu7MUY1fTjfvPlg+loA3leMvotMFi323fs56rVBH3OZj7wROJ++V2pSQKDo1nMWT0+NfDt2rqWvD1Rd02MhBOs9SaTcybWqb6dxqHwlOGXHlDBiz1fls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770163862; c=relaxed/simple; bh=YR8JG1rxqeqQvnn3XQP75sunrORnlQmp4fD9P78DfSE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Oql1aRMsfH0kxB5tHrOnwfKyVf/DoQdRkvlplRnaTuU/qI77ZRU8OeoiCk3xFnc4yZAyEqCN5B3XKOSjLn8tC67ZdWZgUI8svQyXm9u48PlbNcSRAkrzlTWvxeCAep4wDiwPxo76wkYE9NO7uGryqycewp+uuy5uOvlApi2fT9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=HN82gUWM; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HN82gUWM" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2a76b0673dcso61479515ad.0 for ; Tue, 03 Feb 2026 16:11:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770163861; x=1770768661; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Y4pwB4csRXSN3YIr4wsuOmTDwhnD/JebNUm7D7D+maQ=; b=HN82gUWM1Xef1tOYecx2vWxDY/7rmNtYLLqMBJ8H0Z5Wsl9hBG/RwfbWWUEfuGKeCi YTAFnOb5s+XbQ27OV45lB6vU/Ct1tp8mY1KfFFEH8gOvEBD0U5mypAuClo/36fP68Oi9 6Zg/FVm7sYQW2sA3vXnF4XjZsMdQj7oY1wIhrkkmH3nSZCKQfx8h44RJnJQJ+L7tZjk8 ifQ2SbW57nxh4OfzYGs+VPkFSOi1yB0ANSA6i8PsQrDbit8436vG9jcwHlLB2XyMLj+9 mnW2vPeY7m9R5SEBmwXCXo8WkLQdcPNGU4GzIeGpjRs3PAenU23GdO1+KeGopeaS04Oo EQmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770163861; x=1770768661; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y4pwB4csRXSN3YIr4wsuOmTDwhnD/JebNUm7D7D+maQ=; b=RbfISqMVf+7KIpDfTcZKPmJItBybT8SBfGsi3aBvLhRNZbrC3bmncAIlbaXIfjSJ7f UTD4UfFiPb3W9tIwfimwwOnkmZojyR3MzHJAC8055MSVRt8herl2FH+60LHd+F7ol4IV jyces43eJL1W0AuqS1pgI+SwpmXQRNJAvXNjqDQMTSLhjRblvKo7b8dPsoP+PgJSI0YM 76p6y8lHHkxOMz0Ghc++tkR9W1CGWFrD4NzK0PZwcN/mUj2ekjTDvGdZmhewvIeAdZ9X DqfcdLD/pi/RlOTF2JOkXAITQPB5U+88Q9zbGR5kgiVkOAMZ8XXqxGVWAhbS9pPqE9J+ QMVQ== X-Forwarded-Encrypted: i=1; AJvYcCXTWXIF5cghCWdFwVIPWMmz4oGzJ34TyhbXoGscCYcwl61gaZbqb8xKJxrFj9w/52L9nQK5buZYVm0aZIk=@vger.kernel.org X-Gm-Message-State: AOJu0YxzAGoELUSE3h5/E8whWSTzskftleC955kHlUCaocZkRJPw1ere FRZrc6LMGTD68i/dMl28zbEA94Z9rer5JVKGqet4FbJiKfm601iTqltsoMoKyy0nbh2MdFxhcX7 YvbLIsg== X-Received: from pldt11.prod.google.com ([2002:a17:903:40cb:b0:2a0:d5be:7bb3]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:e88d:b0:295:560a:e499 with SMTP id d9443c01a7336-2a933bc9b8amr12161285ad.5.1770163860720; Tue, 03 Feb 2026 16:11:00 -0800 (PST) Date: Tue, 3 Feb 2026 16:10:25 -0800 In-Reply-To: <20260115172154.709024-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260115172154.709024-1-seanjc@google.com> X-Mailer: git-send-email 2.53.0.rc2.204.g2597b5adb4-goog Message-ID: <177016376262.575354.15783428739984459015.b4-ty@google.com> Subject: Re: [PATCH v5] KVM: selftests: Test READ=>WRITE dirty logging behavior for shadow MMU From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yosry Ahmed Content-Type: text/plain; charset="utf-8" On Thu, 15 Jan 2026 09:21:54 -0800, Sean Christopherson wrote: > Update the nested dirty log test to validate KVM's handling of READ faults > when dirty logging is enabled. Specifically, set the Dirty bit in the > guest PTEs used to map L2 GPAs, so that KVM will create writable SPTEs > when handling L2 read faults. When handling read faults in the shadow MMU, > KVM opportunistically creates a writable SPTE if the mapping can be > writable *and* the gPTE is dirty (or doesn't support the Dirty bit), i.e. > if KVM doesn't need to intercept writes in order to emulate Dirty-bit > updates. > > [...] Applied to kvm-x86 selftests, without the duplicate sync (hopefully). Thanks for the reviews! [1/1] KVM: selftests: Test READ=>WRITE dirty logging behavior for shadow MMU https://github.com/kvm-x86/linux/commit/a91cc4824660 -- https://github.com/kvm-x86/linux/tree/next