]> www.infradead.org Git - nvme.git/commit
KVM: arm64: nv: Use accessors for modifying ID registers
authorOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 17:40:31 +0000 (17:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:16:44 +0000 (17:16 +0000)
commit44241f34fac96d23cb8eac944815a1fdbf4ce523
treec031d76d65e7d5af7cf3dbddbd6b3f279bc201e1
parentd7508d27dd8878eb09e470855a546d96e0cfd4d3
KVM: arm64: nv: Use accessors for modifying ID registers

In the interest of abstracting away the underlying storage of feature
ID registers, rework the nested code to go through the accessors instead
of directly iterating the id_regs array.

This means we now lose the property that ID registers unknown to the
nested code get zeroed, but we really ought to be handling those
explicitly going forward.

Link: https://lore.kernel.org/r/20240619174036.483943-6-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/nested.c