hw/s390x/s390-skeys: use memory mapping to detect which storage keys to dump
commit78eedc60aa01df7fa302b882f8f7e06901d24123
authorDavid Hildenbrand <david@redhat.com>
Fri, 3 Sep 2021 15:55:11 +0000 (3 17:55 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 6 Sep 2021 14:24:05 +0000 (6 16:24 +0200)
treef32b78dd69d5346f9fe67ce6ba1ff3af6cac4f7e
parent67db1306a253b87ea4a1fc4e4fc13758b74aa8b2
hw/s390x/s390-skeys: use memory mapping to detect which storage keys to dump

Handle it similar to migration. Assert that we're holding the BQL, to
make sure we don't see concurrent modifications.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210903155514.44772-11-david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-skeys.c