Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU

Anthony Liguori
2008-10-29T14:24:00Z

Fabrice Bellard wrote:
> Avi Kivity wrote:
>
>> Hollis Blanchard wrote:
>>
>>>
>>> Out of curiosity, where are those places?
>>>
>>>
>> local apic -- needs to access interrupt disable flag
>> acpi sleep -- halts the current processor, so tied to cpustate
>> vmport -- bad ABI requires access to registers
>>
>
> These accesses are the exception and should be done with specific CPU
> methods. IMHO, direct access to the CPU state should otherwise never be
> done from devices.
>

Yes, this is what I'm working on now.

There are also non-devices that access CPUState but they are also
special cases (gdbstub, monitor, save/restore).

Regards,

Anthony Liguori

> Regards,
>
> Fabrice.
>
>
>
>