hw/s390x: Introduce s390_skeys_get|set() helpers

s390_skeys_set() dispatch to S390SKeysClass::set_skeys(),
and s390_skeys_get() to S390SKeysClass::get_skeys().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20240613104415.9643-2-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-06-13 12:25:28 +02:00
parent c3425158d6
commit b926895357
3 changed files with 41 additions and 0 deletions

View file

@ -111,6 +111,16 @@ struct QEMUS390SKeysState {
};
void s390_skeys_init(void);
/**
* @s390_skeys_get: See S390SKeysClass::get_skeys()
*/
int s390_skeys_get(S390SKeysState *ks, uint64_t start_gfn,
uint64_t count, uint8_t *keys);
/**
* @s390_skeys_set: See S390SKeysClass::set_skeys()
*/
int s390_skeys_set(S390SKeysState *ks, uint64_t start_gfn,
uint64_t count, uint8_t *keys);
S390SKeysState *s390_get_skeys_device(void);