[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221108213226.3340496-1-dionnaglaze@google.com>
Date: Tue, 8 Nov 2022 21:32:24 +0000
From: Dionna Glaze <dionnaglaze@...gle.com>
To: linux-kernel@...r.kernel.org, x86@...nel.org
Cc: Dionna Glaze <dionnaglaze@...gle.com>,
Tom Lendacky <Thomas.Lendacky@....com>,
Ashish Kalra <Ashish.Kalra@....com>,
Paolo Bonzini <pbonzini@...hat.com>,
Joerg Roedel <jroedel@...e.de>,
Peter Gonda <pgonda@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Dave Hansen <dave.hansen@...ux.intel.com>
Subject: [PATCH 0/2] kvm: sev: Add SNP guest request throttling
This patch series is based on
[PATCH Part2 v6 00/49] Add AMD Secure Nested Paging (SEV-SNP)
and is requested to be rolled into the upcoming v7 of that patch series.
The GHCB specification recommends that SNP guest requests should be
rate limited. This 2 patch series adds such rate limiting with a 2
burst, 2 second interval per VM as the default values for two new
kvm-amd module parameters:
guest_request_throttle_s
guest_request_throttle_burst
This patch series cooperates with the guest series,
Add throttling detection to sev-guest
in order for guests to retry when throttled, rather than disable the
VMPCK and fail to complete their request.
Cc: Tom Lendacky <Thomas.Lendacky@....com>
Cc: Ashish Kalra <Ashish.Kalra@....com>
Cc: Paolo Bonzini <pbonzini@...hat.com>
Cc: Joerg Roedel <jroedel@...e.de>
Cc: Peter Gonda <pgonda@...gle.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>
Signed-off-by: Dionna Glaze <dionnaglaze@...gle.com>
Dionna Glaze (2):
kvm: sev: Add SEV-SNP guest request throttling
kvm: sev: If ccp is busy, report throttled to guest
arch/x86/include/asm/sev-common.h | 1 +
arch/x86/kvm/svm/sev.c | 46 +++++++++++++++++++++++++++++--
arch/x86/kvm/svm/svm.h | 3 ++
3 files changed, 48 insertions(+), 2 deletions(-)
--
2.38.1.431.g37b22c650d-goog
Powered by blists - more mailing lists