kvm: Change cpu_synchronize_state() argument to CPUState
Change Monitor::mon_cpu to CPUState as well. Reviewed-by: liguang <lig.fnst@cn.fujitsu.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
dd1750d798
commit
cb446ecab7
13 changed files with 28 additions and 27 deletions
|
|
@ -263,10 +263,10 @@ void kvm_cpu_synchronize_state(CPUState *cpu);
|
|||
|
||||
/* generic hooks - to be moved/refactored once there are more users */
|
||||
|
||||
static inline void cpu_synchronize_state(CPUArchState *env)
|
||||
static inline void cpu_synchronize_state(CPUState *cpu)
|
||||
{
|
||||
if (kvm_enabled()) {
|
||||
kvm_cpu_synchronize_state(ENV_GET_CPU(env));
|
||||
kvm_cpu_synchronize_state(cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue