From: Mark Brown <broonie@kernel.org>
To: Marc Zyngier <maz@kernel.org>,
Oliver Upton <oliver.upton@linux.dev>,
James Morse <james.morse@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev,
linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>
Subject: [PATCH v2 0/2] KVM: arm64: Store a cpu_fp_state directly in the vCPU data
Date: Thu, 29 Feb 2024 21:47:33 +0000 [thread overview]
Message-ID: <20240229-kvm-arm64-group-fp-data-v2-0-276de0d550e8@kernel.org> (raw)
Simplify the binding of the guest state to the CPU when returning to the
host by storing a copy of the structure used to pass the state in the
vCPU data and initialising it during guest setup rather than creating a
new copy each time we exit the guest.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
Changes in v2:
- Remove stale fp_state local.
- Changelog updates.
- Link to v1: https://lore.kernel.org/r/20240226-kvm-arm64-group-fp-data-v1-0-07d13759517e@kernel.org
---
Mark Brown (2):
KVM: arm64: Rename variable for tracking ownership of FP state
KVM: arm64: Reuse struct cpu_fp_state to track the guest FP state
arch/arm64/include/asm/kvm_emulate.h | 4 ++--
arch/arm64/include/asm/kvm_host.h | 25 ++++++++++++-------------
arch/arm64/kvm/arm.c | 14 +++++++++++++-
arch/arm64/kvm/fpsimd.c | 31 ++++++-------------------------
arch/arm64/kvm/guest.c | 21 ++++++++++++++-------
arch/arm64/kvm/hyp/include/hyp/switch.h | 6 +++---
arch/arm64/kvm/hyp/nvhe/hyp-main.c | 9 +++++----
arch/arm64/kvm/hyp/nvhe/switch.c | 2 +-
arch/arm64/kvm/hyp/vhe/switch.c | 2 +-
arch/arm64/kvm/reset.c | 14 ++++++++------
10 files changed, 65 insertions(+), 63 deletions(-)
---
base-commit: 54be6c6c5ae8e0d93a6c4641cb7528eb0b6ba478
change-id: 20240226-kvm-arm64-group-fp-data-0ae363ce24fe
Best regards,
--
Mark Brown <broonie@kernel.org>
next reply other threads:[~2024-02-29 21:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-29 21:47 Mark Brown [this message]
2024-02-29 21:47 ` [PATCH v2 1/2] KVM: arm64: Rename variable for tracking ownership of FP state Mark Brown
2024-02-29 21:47 ` [PATCH v2 2/2] KVM: arm64: Reuse struct cpu_fp_state to track the guest " Mark Brown
2024-03-02 11:30 ` Marc Zyngier
2024-03-04 16:27 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240229-kvm-arm64-group-fp-data-v2-0-276de0d550e8@kernel.org \
--to=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=james.morse@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=oliver.upton@linux.dev \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®