commit | 0480e04a559c477946fbc156490a19e8e70f3d4f | [log] [tgz] |
---|---|---|
author | Andre Przywara <andre.przywara@arm.com> | Thu Apr 23 18:38:43 2020 +0100 |
committer | Will Deacon <will@kernel.org> | Fri Apr 24 18:00:01 2020 +0100 |
tree | e97ff62734f68bb9ef08d3ab9168e3265949d3b6 | |
parent | 8d9877253b3c442868eb21bb4fd98cf177192993 [diff] |
memslot: Add support for READONLY mappings A KVM memslot has a flags field, which allows to mark a region as read-only. Add another memory type bit to allow kvmtool-internal users to map a write-protected region. Write access would trap and can be handled by the MMIO emulation, which should register on the same guest address region. Tested-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will@kernel.org>