An error occurred while fetching folder content.
KVM: Update gfn_to_pfn_cache khva when it moves within the same page
David Woodhouse authored
commit 8332f0ed upstream.

In the case where a GPC is refreshed to a different location within the
same page, we didn't bother to update it. Mostly we don't need to, but
since the ->khva field also includes the offset within the page, that
does have to be updated.

Fixes: 3ba2c95e

 ("KVM: Do not incorporate page offset into gfn=>pfn cache user address")
Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: default avatarPaul Durrant <paul@xen.org>
Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
Cc: stable@kernel.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
f18a02b4
Name Last commit Last update
..