OSDN Git Service

KVM: x86: remove unnecessary rmap walk of read-only memslots
authorAnthony Yznaga <anthony.yznaga@oracle.com>
Tue, 2 Jun 2020 20:07:28 +0000 (13:07 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2020 18:42:25 +0000 (14:42 -0400)
commit5688fed649f15a232e75148afb0a28864046f44c
tree5e704fc2aaea975a137a6f15237b7334b68f64d7
parent7ec28e264f2e52089c14c6f8eba1ce7b6501e59b
KVM: x86: remove unnecessary rmap walk of read-only memslots

There's no write access to remove.  An existing memslot cannot be updated
to set or clear KVM_MEM_READONLY, and any mappings established in a newly
created or moved read-only memslot will already be read-only.

Signed-off-by: Anthony Yznaga <anthony.yznaga@oracle.com>
Message-Id: <1591128450-11977-2-git-send-email-anthony.yznaga@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c