From patchwork Sat Sep 14 01:13:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13804141 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 DEB0A42AA2 for ; Sat, 14 Sep 2024 01:14:03 +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=1726276446; cv=none; b=l45wuZBT+A+12SR6IeetvpDB9jNJhgwpeL1AMWPh9WF0Dl1kQTIH8b/qj0wSj268YauPQZqyyClTx9UbRaq6prDTu/E/WvsOENUrp7ggBXYdmaFKb7cPFcvIf8gGjtWVFsAo42fJFwI3ocQp2qqCwthBoSVZ1OHdwI2p+XZFT5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726276446; c=relaxed/simple; bh=8hGFnDmx97YvmntVh7A6887mN5n1bo6yLTTUAOGk2Z0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NOLGE+gWk+DtFT6sP06AXE0vUL4SHgGYJTtBNCuf0vzTS19tuIEz2YXFYKORsZ6HILIzZfiqsdKyOhxo80DhYX3/a5mqSYX2GkG+M2v9yJu9W7RT5y+s0TzBSVQjVsLSqPmNKjAcZr0/sKMYlAS5kEtOmDhXNeYZ13Nu0cARDu4= 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=lHNB1SQS; 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="lHNB1SQS" Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6db961c2291so61943077b3.1 for ; Fri, 13 Sep 2024 18:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1726276443; x=1726881243; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=/wusTrY/RaRpW8ZSA2W7PXFPM2ScRlEcVob6BeeQf34=; b=lHNB1SQSKi16zGJR5BT2upfl57z+qabwnPGnzSFfwhQI0nrPF9DFW0zq77gheiU/4T wu0KpttkVuidniVrRh5jbW2YQE4lyX/tlMRqIQIGSz+PDLFwQ/8JZrQ+u8rbUcmBtv82 Fdg/yTCMDvbdiFAVyH67C+ku+6mggTS7oLczIcExton3DsfJLIWIlcnKNNa374x3uj/3 CcyRn9rC+V5Yp00YCg0JlsLGE/blNdNnuZ26vwnB+kFYU3DpBJtWNqBeI8da1j2zoxie kYGeIQS2DeRjn1eSTDIGGdxgdQMEb3JnjHaRoOY/1ijHFs+mz4wnzcgkG4eYBjmxL9Zn LGGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726276443; x=1726881243; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/wusTrY/RaRpW8ZSA2W7PXFPM2ScRlEcVob6BeeQf34=; b=mK4QdUoagzZjtdTskESQygQRvmUzugRWXaOccJCtzNWnu1igVi+bCrGn0pBtFa166k vTGjf5r7fvu5E4r70pF/Nn6iIeVjlDgwc9vR1Z1SfCtiQtvvdZHomCv9CE3QKNknxFpb B5U+haNR4cXL7DBT72WIXSyUe0vSBvOAgZa8GQVauc9DfQc2y98a7kbgotVWX397/Tcq wfKimmrWCCYkj/9bJbSVE5yrH6m/hzbPvTrt+8l8I5Ng59cybp0AVghPo0uYiJYICaAb MUv2BjwE5kXMRucGN6x4sH3FmK2FNYQv86nRcBpde51NFJg2V/nL3ocw9O4C9WTU1ssC 1TOA== X-Gm-Message-State: AOJu0Yz+YrNnSE4zLrDQlZ882nJ5vzgIdhqT1UkLlKkSXCGrBlbdQguD Pp33WXnmNOLjKjxnng8vQ13jOpXY/Mc7jranciZSc7pBwtwyIhw8UoBVxdOHMQDlpNRcDxOTUFM 5Gw== X-Google-Smtp-Source: AGHT+IGqMoVw7IyDOoeQsf0VKAfkCs3rgUl0XVcRxqiZgLjIaoMEzdFDDd3f9P30bTFCqJfct6AgL/JcPJU= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:6890:0:b0:e16:55e7:5138 with SMTP id 3f1490d57ef6-e1d9daabfb5mr12120276.0.1726276442805; Fri, 13 Sep 2024 18:14:02 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 13 Sep 2024 18:13:47 -0700 In-Reply-To: <20240914011348.2558415-1-seanjc@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240914011348.2558415-1-seanjc@google.com> X-Mailer: git-send-email 2.46.0.662.g92d0881bb0-goog Message-ID: <20240914011348.2558415-7-seanjc@google.com> Subject: [GIT PULL] KVM: x86: SVM changes for 6.12 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson I got nothing clever or interesting to say for this one. The following changes since commit 47ac09b91befbb6a235ab620c32af719f8208399: Linux 6.11-rc4 (2024-08-18 13:17:27 -0700) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-svm-6.12 for you to fetch changes up to 4440337af4d415c8abf8b9b0e10c79b7518e6e3c: KVM: SVM: let alternatives handle the cases when RSB filling is required (2024-09-10 10:27:53 -0700) ---------------------------------------------------------------- KVM SVM changes for 6.12: - Don't stuff the RSB after VM-Exit when RETPOLINE=y and AutoIBRS is enabled, i.e. when the CPU has already flushed the RSB. - Trace the per-CPU host save area as a VMCB pointer to improve readability and cleanup the retrieval of the SEV-ES host save area. - Remove unnecessary accounting of temporary nested VMCB related allocations. ---------------------------------------------------------------- Amit Shah (1): KVM: SVM: let alternatives handle the cases when RSB filling is required Sean Christopherson (3): KVM: SVM: Add a helper to convert a SME-aware PA back to a struct page KVM: SVM: Add host SEV-ES save area structure into VMCB via a union KVM: SVM: Track the per-CPU host save area as a VMCB pointer Yongqiang Liu (1): KVM: SVM: Remove unnecessary GFP_KERNEL_ACCOUNT in svm_set_nested_state() arch/x86/include/asm/svm.h | 20 +++++++++++++++----- arch/x86/kvm/svm/nested.c | 4 ++-- arch/x86/kvm/svm/svm.c | 24 ++++++++++++------------ arch/x86/kvm/svm/svm.h | 18 ++++++++++++++++-- arch/x86/kvm/svm/vmenter.S | 8 ++------ 5 files changed, 47 insertions(+), 27 deletions(-)