Use correct input constant
440 and desktop codes use different input constants for interrupt indication. Let's use the respective ones for KVM. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b80a55e67b
commit
16415335be
@ -124,6 +124,14 @@ int kvm_arch_get_registers(CPUState *env)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(TARGET_PPCEMB)
|
||||||
|
#define PPC_INPUT_INT PPC40x_INPUT_INT
|
||||||
|
#elif defined(TARGET_PPC64)
|
||||||
|
#define PPC_INPUT_INT PPC970_INPUT_INT
|
||||||
|
#else
|
||||||
|
#define PPC_INPUT_INT PPC6xx_INPUT_INT
|
||||||
|
#endif
|
||||||
|
|
||||||
int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
|
int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
@ -133,7 +141,7 @@ int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
|
|||||||
* interrupt, reset, etc) in PPC-specific env->irq_input_state. */
|
* interrupt, reset, etc) in PPC-specific env->irq_input_state. */
|
||||||
if (run->ready_for_interrupt_injection &&
|
if (run->ready_for_interrupt_injection &&
|
||||||
(env->interrupt_request & CPU_INTERRUPT_HARD) &&
|
(env->interrupt_request & CPU_INTERRUPT_HARD) &&
|
||||||
(env->irq_input_state & (1<<PPC40x_INPUT_INT)))
|
(env->irq_input_state & (1<<PPC_INPUT_INT)))
|
||||||
{
|
{
|
||||||
/* For now KVM disregards the 'irq' argument. However, in the
|
/* For now KVM disregards the 'irq' argument. However, in the
|
||||||
* future KVM could cache it in-kernel to avoid a heavyweight exit
|
* future KVM could cache it in-kernel to avoid a heavyweight exit
|
||||||
|
Loading…
Reference in New Issue
Block a user