mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
cpus: add handle_interrupt to the CpusAccel interface
kvm: uses the generic handler qtest: uses the generic handler whpx: changed to use the generic handler (identical implementation) hax: changed to use the generic handler (identical implementation) hvf: changed to use the generic handler (identical implementation) tcg: adapt tcg-cpus to point to the tcg-specific handler Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
994aa17200
commit
bb4776be77
9 changed files with 48 additions and 82 deletions
|
@ -262,14 +262,6 @@ static void update_apic_tpr(CPUState *cpu)
|
|||
|
||||
#define VECTORING_INFO_VECTOR_MASK 0xff
|
||||
|
||||
static void hvf_handle_interrupt(CPUState * cpu, int mask)
|
||||
{
|
||||
cpu->interrupt_request |= mask;
|
||||
if (!qemu_cpu_is_self(cpu)) {
|
||||
qemu_cpu_kick(cpu);
|
||||
}
|
||||
}
|
||||
|
||||
void hvf_handle_io(CPUArchState *env, uint16_t port, void *buffer,
|
||||
int direction, int size, int count)
|
||||
{
|
||||
|
@ -894,7 +886,6 @@ static int hvf_accel_init(MachineState *ms)
|
|||
}
|
||||
|
||||
hvf_state = s;
|
||||
cpu_interrupt_handler = hvf_handle_interrupt;
|
||||
memory_listener_register(&hvf_memory_listener, &address_space_memory);
|
||||
cpus_register_accel(&hvf_cpus);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue