mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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:
parent
c3425158d6
commit
b926895357
3 changed files with 41 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue