[PATCH 3/4] KVM: arm64: Fix FFR offset calculation for pKVM host state save and restore
Mark Brown
broonie at kernel.org
Wed Jun 5 06:17:36 PDT 2024
On Wed, Jun 05, 2024 at 01:12:34PM +0100, Fuad Tabba wrote:
> If my understanding of the spec is correct (which more often than not
> it isn't), I don't think we have an issue as long as we use the same
> value in the offset on saving/restoring, and that that value
> represents the maximum possible value.
Yes, we could also correct the issue by switching to use the system
enumerated maximum but that still leaves us setting one value and then
immediately assuming a different value. Reading the actual VL from the
hardware makes the code more obviously self consistent.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240605/d02b54ef/attachment.sig>
More information about the linux-arm-kernel
mailing list