mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
kvm: Add arch reset handler
Will be required by succeeding changes. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
fbc3d96cc4
commit
caa5af0ff3
4 changed files with 12 additions and 0 deletions
|
@ -150,6 +150,7 @@ static void kvm_reset_vcpu(void *opaque)
|
|||
{
|
||||
CPUState *env = opaque;
|
||||
|
||||
kvm_arch_reset_vcpu(env);
|
||||
if (kvm_arch_put_registers(env)) {
|
||||
fprintf(stderr, "Fatal: kvm vcpu reset failed\n");
|
||||
abort();
|
||||
|
@ -201,6 +202,7 @@ int kvm_init_vcpu(CPUState *env)
|
|||
ret = kvm_arch_init_vcpu(env);
|
||||
if (ret == 0) {
|
||||
qemu_register_reset(kvm_reset_vcpu, env);
|
||||
kvm_arch_reset_vcpu(env);
|
||||
ret = kvm_arch_put_registers(env);
|
||||
}
|
||||
err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue