]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit339b06a2a05632ecd7a52ba9e8ffe3c3af66b1bf
tree5e704fc2aaea975a137a6f15237b7334b68f64d7
parent792f507c21078e52644dc5fa18b0079baa534c0a
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