[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU
From: |
Fabrice Bellard |
Subject: |
Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU |
Date: |
Wed, 29 Oct 2008 15:16:09 +0100 |
User-agent: |
Thunderbird 2.0.0.5 (X11/20070727) |
Avi Kivity wrote:
> Hollis Blanchard wrote:
>> On Tue, Oct 28, 2008 at 6:36 PM, Anthony Liguori
>> <address@hidden> wrote:
>>
>>> Something I was thinking about this morning, and I think the first place
>>> where we'll definitely need a hook, is how to deal with
>>> kvm_load_registers(). I think there's overlap between KVM and the IO
>>> thread
>>> here.
>>>
>>> There are two reasons (I can think of) that most of the device model
>>> code
>>> can't run in conjunction with TCG. The first is that TCG may modify
>>> CPUState in a non-atomic way. The device model may need to access
>>> CPUState
>>> although there are very few places that it does.
>>>
>>
>> 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.
Regards,
Fabrice.
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, (continued)
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/28
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Avi Kivity, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Glauber Costa, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Avi Kivity, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Glauber Costa, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Avi Kivity, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Hollis Blanchard, 2008/10/30
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Avi Kivity, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU,
Fabrice Bellard <=
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/29
- Re: [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Blue Swirl, 2008/10/29
- [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Glauber Costa, 2008/10/29
- [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Glauber Costa, 2008/10/29
- [Qemu-devel] Re: [PATCH 3/3] Add KVM support to QEMU, Anthony Liguori, 2008/10/29