[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 6/8] cpu: make CPU_INTERRUPT_RESET available
Re: [Qemu-devel] [PATCH v2 6/8] cpu: make CPU_INTERRUPT_RESET available on all targets
Sat, 24 May 2014 09:30:19 +0100
On 23 May 2014 19:10, Paolo Bonzini <address@hidden> wrote:
> Il 23/05/2014 19:59, Peter Maydell ha scritto:
>> On 2 May 2014 15:33, Paolo Bonzini <address@hidden> wrote:
>> I was looking at cleaning up the horrible ifdef ladder a little
>> lower in this function, and I noticed this code had been
>> added recently. Why is TARGET_I386 a special case here?
> Because a hypervisor (cpu_svm_check_intercept_param) can block the
> interrupt. Note that CPU_INTERRUPT_INIT is actually the same bit as
Ugh. This suggests reset is probably not really generic...
> The whole #ifdef mess should probably be changed to a function in cpu.c, now
> that we don't have AREG0 constraints anymore.
Well, I'm planning to move the bodies of all the ifdefs into
a cpu_check_interrupts() provided by the target's cpu.h[*].
This x86 bit is just awkward because it means there's
x86 stuff both before and after the generic reset code.
[*] not a cpu method since it seemed like it would be
a bad idea to have a function pointer call every
time round the main loop when there's a blocked
[Qemu-devel] [PATCH v2 8/8] x86: correctly implement soft reset, Paolo Bonzini, 2014/05/02
Re: [Qemu-devel] [PATCH v2 0/8] x86: correctly implement soft reset, Michael S. Tsirkin, 2014/05/05
- [Qemu-devel] [PATCH v2 2/8] kvm: forward INIT signals coming from the chipset, (continued)