mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
kvm: reset state from the CPU's reset method
Now that we have a CPU object with a reset method, it is better to keep the KVM reset close to the CPU reset. Using qemu_register_reset as we do now keeps them far apart. With this patch, PPC no longer calls the kvm_arch_ function, so it can get removed there. Other arches call it from their CPU reset handler, and the function gets an ARMCPU/X86CPU/S390CPU. Note that ARM- and s390-specific functions are called kvm_arm_* and kvm_s390_*, while x86-specific functions are called kvm_arch_*. That follows the convention used by the different architectures. Changing that is the topic of a separate patch. Reviewed-by: Gleb Natapov <gnatapov@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7848c8d19f
commit
50a2c6e55f
13 changed files with 37 additions and 25 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "sysemu/kvm.h"
|
||||
|
||||
bool kvm_allows_irq0_override(void);
|
||||
void kvm_arch_reset_vcpu(X86CPU *cs);
|
||||
|
||||
int kvm_device_pci_assign(KVMState *s, PCIHostDeviceAddress *dev_addr,
|
||||
uint32_t flags, uint32_t *dev_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue