30
30
void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid);
33
* write_list_to_kvmstate:
36
* For each register listed in the ARMCPU cpreg_indexes list, write
37
* its value from the cpreg_values list into the kernel (via ioctl).
38
* This updates KVM's working data structures from TCG data or
39
* from incoming migration state.
41
* Returns: true if all register values were updated correctly,
42
* false if some register was unknown to the kernel or could not
43
* be written (eg constant register with the wrong value).
44
* Note that we do not stop early on failure -- we will attempt
45
* writing all registers in the list.
47
bool write_list_to_kvmstate(ARMCPU *cpu);
50
* write_kvmstate_to_list:
53
* For each register listed in the ARMCPU cpreg_indexes list, write
54
* its value from the kernel into the cpreg_values list. This is used to
55
* copy info from KVM's working data structures into TCG or
56
* for outbound migration.
58
* Returns: true if all register values were read correctly,
59
* false if some register was unknown or could not be read.
60
* Note that we do not stop early on failure -- we will attempt
61
* reading all registers in the list.
63
bool write_kvmstate_to_list(ARMCPU *cpu);