[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] CPUArchState: introduce per-cpu lock |
Date: |
Mon, 25 Jun 2012 12:07:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 |
Am 25.06.2012 12:04, schrieb Stefan Hajnoczi:
> On Sun, Jun 24, 2012 at 3:05 PM, liu ping fan <address@hidden> wrote:
>> On Fri, Jun 22, 2012 at 8:36 PM, Stefan Hajnoczi <address@hidden> wrote:
>>> On Thu, Jun 21, 2012 at 4:06 PM, Liu Ping Fan <address@hidden> wrote:
>>>> diff --git a/main-loop.h b/main-loop.h
>>>> index dce1cd9..d8d44a4 100644
>>>> --- a/main-loop.h
>>>> +++ b/main-loop.h
>>>> @@ -323,6 +323,9 @@ void qemu_bh_delete(QEMUBH *bh);
>>>> int qemu_add_child_watch(pid_t pid);
>>>> #endif
>>>>
>>>> +void qemu_mutex_lock_cpu(void *_env);
>>>> +void qemu_mutex_unlock_cpu(void *_env);
>>>
>>> Why void* instead of CPUArchState*?
>>>
>> Because we can hide the CPUArchState from apic.c
>
> There's probably a nicer way of doing that than void*.
CPUState, as requested.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
[Qemu-devel] [PATCH 2/2] kvm: use per-cpu lock to free vcpu thread out of the big lock, Liu Ping Fan, 2012/06/21