accel/hvf: Rename hvf_vcpu_exec() -> hvf_arch_vcpu_exec()
hvf_vcpu_exec() is implemented per target, rename it as hvf_arch_vcpu_exec(), following the per target pattern. Since it calls hv_vcpu_run(), mention it must be called on the vCPU. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Mads Ynddal <mads@ynddal.dk> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
320496f4ec
commit
963f1576c0
4 changed files with 6 additions and 4 deletions
|
|
@ -194,7 +194,7 @@ static void *hvf_cpu_thread_fn(void *arg)
|
|||
do {
|
||||
qemu_process_cpu_events(cpu);
|
||||
if (cpu_can_run(cpu)) {
|
||||
r = hvf_vcpu_exec(cpu);
|
||||
r = hvf_arch_vcpu_exec(cpu);
|
||||
if (r == EXCP_DEBUG) {
|
||||
cpu_handle_guest_debug(cpu);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,12 +73,14 @@ int hvf_arch_init(void);
|
|||
hv_return_t hvf_arch_vm_create(MachineState *ms, uint32_t pa_range);
|
||||
int hvf_arch_init_vcpu(CPUState *cpu);
|
||||
void hvf_arch_vcpu_destroy(CPUState *cpu);
|
||||
int hvf_vcpu_exec(CPUState *);
|
||||
hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t);
|
||||
int hvf_put_registers(CPUState *);
|
||||
int hvf_get_registers(CPUState *);
|
||||
void hvf_kick_vcpu_thread(CPUState *cpu);
|
||||
|
||||
/* Must be called by the owning thread */
|
||||
int hvf_arch_vcpu_exec(CPUState *);
|
||||
|
||||
struct hvf_sw_breakpoint {
|
||||
vaddr pc;
|
||||
vaddr saved_insn;
|
||||
|
|
|
|||
|
|
@ -1788,7 +1788,7 @@ static void hvf_sync_vtimer(CPUState *cpu)
|
|||
}
|
||||
}
|
||||
|
||||
int hvf_vcpu_exec(CPUState *cpu)
|
||||
int hvf_arch_vcpu_exec(CPUState *cpu)
|
||||
{
|
||||
ARMCPU *arm_cpu = ARM_CPU(cpu);
|
||||
CPUARMState *env = &arm_cpu->env;
|
||||
|
|
|
|||
|
|
@ -721,7 +721,7 @@ void hvf_simulate_wrmsr(CPUState *cs)
|
|||
printf("write msr %llx\n", RCX(cs));*/
|
||||
}
|
||||
|
||||
int hvf_vcpu_exec(CPUState *cpu)
|
||||
int hvf_arch_vcpu_exec(CPUState *cpu)
|
||||
{
|
||||
X86CPU *x86_cpu = X86_CPU(cpu);
|
||||
CPUX86State *env = &x86_cpu->env;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue