Skip to content
Commit 2c530308 authored by Andre Przywara's avatar Andre Przywara
Browse files

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.

Signed-off-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
parent 376696af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment