Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1067383lqo; Fri, 17 May 2024 09:38:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/V2+yzPb243CrkB6aEM60Cesed18KZK0Gjsj8YVt7y8KVY7/aOjtOlsjWJfM2KSRJ7n47RtctTg67FtxriMM6jrWKyYtC3fcksfrdwA== X-Google-Smtp-Source: AGHT+IGUkTbi6L9ZLHTM3ejeJXDSWd31ZTe6YKDy4Bv1T56umKvwph+hIfDjaW9uY0Ez2cCtQel8 X-Received: by 2002:ac2:4108:0:b0:51e:eca3:e02f with SMTP id 2adb3069b0e04-52210585189mr14872655e87.67.1715963916271; Fri, 17 May 2024 09:38:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715963916; cv=pass; d=google.com; s=arc-20160816; b=LvTF9Zi/7FnDjqU6gkJldbmeug+jiQqDU736ezcSq7hf69vlD12pMai5ElVDHYAD66 2MgVByUCgtF8yCW33OrmAPnLjwwP4w5LBbZQ7yKl+pC+1Mkqt7ud/uN2IyF6XR4UkDqW mJsnf0nCHLs4Fqb5c0yoEI5a4grfLJBJ3VIFwIJC0aNkdMqbtT/wTo0uv00vjXZ1wlMI cPWip6cSn+qc5h8g49a5cMqIUGqo6X+JRI3GC9S2Vxx2PWag/uddJ6fF7wwE573hv9TW BueNt7gwuTlnSfQleHl1FEHe8vKcfe3jG62uyRWvSl3XVOQsRsjA6CSFA+Wmic5Zx8nU AnoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=6Rmi2OkZMH5QZdYYuvCphZHTTfn19TkxZp9MFoDCGOE=; fh=xUYniy/Z1f3/MEibMz3XbiaDAH3l6FovEv4uJM4aeOc=; b=xqSehuJzO/qJnjDaEqVj3gkioIE/XBQN5wcECEPNx5upADthjtfzHirgG3FUJNEmRU A7TwZBm043Q+4Wfu3HlRpYG88YqUJNIU0vgEiXw2BevZRYDe9HbXum3GbDGyHuy1RFn4 cgPCYXxXToIRqFyR0R9koxyyLaaekugV3kaHIFcHNbVlF8Jmp18PILBKugk62+9TX7Xn sWCpQ1LMixBbDlisyOVxRF9+TmISMQn28Psa6hTonlGkqIvwxbzL/v1lUykBWkLgvbYj cAq/tIdHSxdCM0OqvEjzf1PMOev6bxlyyo9b+qgP1Owk7uwr4u/aAKvdeVXyp8LYzk80 YApg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pU5YeO8H; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-182358-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1794669fsi980557166b.153.2024.05.17.09.38.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 09:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182358-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pU5YeO8H; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-182358-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182358-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 026911F25FF1 for ; Fri, 17 May 2024 16:38:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13E6F13D8AC; Fri, 17 May 2024 16:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pU5YeO8H" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 E231913D625 for ; Fri, 17 May 2024 16:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715963893; cv=none; b=YY2HjZJneERVk+RFtGl6H0i9PbJSAKGpFdpjLikkr5iqVxjDlmNX+WajBnIrQzargE2TcK++JMUi/a3x9uYot2YzPyRGokyyBuFiHl4FmxU/UdQ4fm72h5I/PvWs5kM/y7N3rlWZkmMHS65w0DfnVutoza8iwA4CNud+OfcSbIc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715963893; c=relaxed/simple; bh=BZ1BDAxsb+ELKe8160sLktY1ER4EDr9oqSJLPNna2NQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UgFrtJMXldaNll5Eno1cDVTbqc0Hfr6LXkh/CQBZ9vI7UV7ihSgi9LcWZNQcRD/quZsv11hwl8V42lCsNkX4YM9TBQq2YVmNU/0kmArByl5VkZN+3lWujydgDo9cQJ1P96wO/MQMzuLN6p/x/4Yz2b//NbWsCv61Dw2Lu9nrrUk= 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=pU5YeO8H; arc=none smtp.client-ip=209.85.219.201 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 Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de468af2b73so16890793276.0 for ; Fri, 17 May 2024 09:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715963891; x=1716568691; 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=6Rmi2OkZMH5QZdYYuvCphZHTTfn19TkxZp9MFoDCGOE=; b=pU5YeO8HBmmq2U9vMvOghGJOaIv/d4XyZQZIOvKUiBjt0BqM7u7AAeQFlYVbFxQtqq fTe3n9T2jbMya3C1Ucxg2yT1JMsB0AeBGyrS4aY4k7GCSkUcH9NIrRPj9KNR4GFCvKz5 bo/VzHBUeuRgUDlQpDAARIGlV1pJbwdTpz/hK+VgsvGticz7qCXjbNt2wxcI1s9s2TXF S3Ip9qCpzcHf46DcBB3h0Ccr4xGIg1sjJV9If01InXcpmSF/nkSn1Re+r83mPrLjHA6r cwuSgzWHh61G+tepkws/gNbpAlvtlpkBpxM2qRUVLLOWQfJQLY/KUl7nVXJLFwHxMMVs KNvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715963891; x=1716568691; 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=6Rmi2OkZMH5QZdYYuvCphZHTTfn19TkxZp9MFoDCGOE=; b=bMcZrNnNMSS57hi4s6rX3ij8XT2Y+o4wnXRZ6hh1YQLxbs4JPOa+lNYhWAY9jr82j0 IhmnISz8EYGtVTS3bRFl0I99unQ+92TsdsCUs98ZXOZ+G7FXqiaRFR155m0+5KgXhJ7m 3GNw9qUo878EooX3uAW4/mfnSVy1krpNb1tVxqlgDRcg2krqWvn6Z2+ryFlMSuRxYj7L 8TRuMM+4T9qE8h3QmzugR3fzFb8bXz/wK8QPkosdyxeSccV10NQOPCjc7hmfEc5qC0bR uXUUY8nIsQwkZH2VXlvkzXUoM8ohlhKxtIkP7ySX/jxG/CVpMeBwCp0DaGgD5HxA+1jo 0Zmw== X-Gm-Message-State: AOJu0YwMiHJJ/2ptUnXG2aNrLxVzmy4EGAiS4zxNUr7dGXK8OQJgezxa 2bENgTtZGZtgE7rAZp4q3QyO4EpgvbMuxPfkuG9tdgkfko4DHbG5lD0D7iNhUW1zlnceyJCRMhT W7Q== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:18d3:b0:de6:16d6:2f34 with SMTP id 3f1490d57ef6-dee4f2cf908mr5519340276.1.1715963890888; Fri, 17 May 2024 09:38:10 -0700 (PDT) Date: Fri, 17 May 2024 09:38:09 -0700 In-Reply-To: <7c0bbec7-fa5c-4f55-9c08-ca0e94e68f7c@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240507154459.3950778-1-pbonzini@redhat.com> <20240507154459.3950778-8-pbonzini@redhat.com> <7c0bbec7-fa5c-4f55-9c08-ca0e94e68f7c@redhat.com> Message-ID: Subject: Re: [PATCH 7/7] KVM: VMX: Introduce test mode related to EPT violation VE From: Sean Christopherson To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Isaku Yamahata Content-Type: text/plain; charset="us-ascii" On Fri, May 17, 2024, Paolo Bonzini wrote: > On 5/16/24 01:38, Sean Christopherson wrote: > > On Tue, May 07, 2024, Paolo Bonzini wrote: > > > @@ -5200,6 +5215,9 @@ static int handle_exception_nmi(struct kvm_vcpu *vcpu) > > > if (is_invalid_opcode(intr_info)) > > > return handle_ud(vcpu); > > > + if (KVM_BUG_ON(is_ve_fault(intr_info), vcpu->kvm)) > > > + return -EIO; > > > > I've hit this three times now when running KVM-Unit-Tests (I'm pretty sure it's > > the EPT test, unsurprisingly). And unless I screwed up my testing, I verified it > > still fires with Isaku's fix[*], though I'm suddenly having problems repro'ing. > > > > I'll update tomorrow as to whether I botched my testing of Isaku's fix, or if > > there's another bug lurking. > > > > https://lore.kernel.org/all/20240515173209.GD168153@ls.amr.corp.intel.com > > I cannot reproduce it on a Skylake (Xeon Gold 5120), with or without Isaku's > fix, with either ./runtests.sh or your reproducer line. > > However I can reproduce it only if eptad=0 and with the following line: > > ./x86/run x86/vmx.flat -smp 1 -cpu max,host-phys-bits,+vmx -m 2560 \ > -append 'ept_access_test_not_present ept_access_test_read_only' FWIW, I tried that on RPL, still no failure.