From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.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 545274C89 for ; Fri, 9 Feb 2024 00:23:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707438196; cv=none; b=LFpTfBKqq0TZsy66o7JsPorVsHZ+UkuJOSm1K5AK4HjH1CAneEVdWBLFjlMS2+fG3GIHAMv0G48nzbsVW0315qPOuHRtyePpDXHopFvLFSZS1kj5sfpRI1ctHFs+RpxCxc64ud9Da1HnsZ25vJp3p3yxAVULhbEklYWGXYShDb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707438196; c=relaxed/simple; bh=xkTklGp53zx1m1tp8jWxzC4/9oXnUMIBr3b3Rh+WAIA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=p4lgJiZZReCZsj3a7R5dB0gK4K9WUW3+yudlkbUw2dBzlMhx7gXpG6gujiie8K2B6Pu/b+ztoaJaPANAA+gU+O9xIR0IM8k5loWGWEzf4LnuIniskFQb3QVMCcSdCcDJg0vHkxFzWgC5kHAqlt/vKOWLJxHVD2n1jRinTpUO+SU= 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=Fn5CfAtj; arc=none smtp.client-ip=209.85.128.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="Fn5CfAtj" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-604832bcbd0so11168257b3.0 for ; Thu, 08 Feb 2024 16:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707438194; x=1708042994; 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=hwOkpyP6W/7ynV7I7J8PdfC/B3dL8reU+AU+Vto6N68=; b=Fn5CfAtjF7ih9MkZFnHdtDeEhNIpCArISfXIdugFaODVjZmom/M5bEq4wZrw8t8sG+ jyfRpqiPcn0AsZTC3it9kIPRKf5MnUHuRr1BtvTUNCxqCscJCPPfkDxjjunNJKDAvuM2 0evyCex2YPMTH5cbvzvkUulB2F7cHTfF58S0tXqdrhEyJue8SBpMBkK5fmxE3hNMF+Y3 U5xlav3Whfo+jZz2DJQViNH/HrFDledZFPFrijpE4BSgLdCqWzGiX0CLshhYeR2fCGoi mZzjPa74caHnavI+gENpwgzbKDuXNJEdG93+K8QHBt4IjYJodiKc/k7EpKjS+QKxUhcI 62+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707438194; x=1708042994; 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=hwOkpyP6W/7ynV7I7J8PdfC/B3dL8reU+AU+Vto6N68=; b=Rw9nY6cekAUzHG53oaPyOzJwHsAiQGjHx9HQKu9DubWXH3ym1OLOLwRlN4nRoWgat4 g69owCig54wMSLCKQzg0va9Y5TICE1Lklu7ps4Ld/KeNkgxgWiW/VZytX2hv3rR32fVL 7JzYndyuckRNdd2oN5Qovq0mFkFswBWYYSYyHdiPUsqWviz4mbQiOOdS26e8QOHNwePm AlklkAZDaEMUXEX8Nihd2lZkAISeihggCWSnbMOJzfOGTCl/QBMoxcD0QBffrLn4esOO adrGkMbV0ctg756xF0loka/Kk9nfFv3NxHiJCvrljWLGc5/Utu6ezLyTvQE32fCD5NKO N/mw== X-Gm-Message-State: AOJu0Yx+6nRYY2zqf5imOYMkAy4CQrTl/DGD5TjnxlbZUfsnqPnlhp1d HpGBCj74sLOxhIeti77cYFO+zwKpFfbtZaHXyMmUQKciGJk8C5uVoAARCVQabsnbk3ggUDkHmn5 1kg== X-Google-Smtp-Source: AGHT+IH2jEv0xvmNwNKY7NSzPtcu2AopznEru+5a1fCkn8YpTE1L36JuE4FUv9KVY/rj+IjcaH33R/9E1Dw= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:18c5:b0:dc6:de8c:f4fb with SMTP id ck5-20020a05690218c500b00dc6de8cf4fbmr277074ybb.9.1707438194347; Thu, 08 Feb 2024 16:23:14 -0800 (PST) Date: Thu, 8 Feb 2024 16:22:47 -0800 In-Reply-To: <20231229022652.300095-1-chao.gao@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20231229022652.300095-1-chao.gao@intel.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Message-ID: <170743816317.201922.997319442265850341.b4-ty@google.com> Subject: Re: [PATCH] KVM: VMX: Report up-to-date exit qualification to userspace From: Sean Christopherson To: Sean Christopherson , kvm@vger.kernel.org, Chao Gao Cc: Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Fri, 29 Dec 2023 10:26:52 +0800, Chao Gao wrote: > Use vmx_get_exit_qual() to read the exit qualification. > > vcpu->arch.exit_qualification is cached for EPT violation only and even > for EPT violation, it is stale at this point because the up-to-date > value is cached later in handle_ept_violation(). > > > [...] Applied to kvm-x86 vmx, thanks! [1/1] KVM: VMX: Report up-to-date exit qualification to userspace https://github.com/kvm-x86/linux/commit/d7f0a00e438d -- https://github.com/kvm-x86/linux/tree/next