qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH] kvm: Prevent dynticks race condition for !C


From: Jan Kiszka
Subject: Re: [Qemu-devel] Re: [PATCH] kvm: Prevent dynticks race condition for !CONFIG_IOTHREAD
Date: Wed, 26 Jan 2011 15:25:26 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2011-01-26 15:01, Stefan Hajnoczi wrote:
> On Wed, Jan 26, 2011 at 1:56 PM, Jan Kiszka <address@hidden> wrote:
>> Looks like this should also include SIGIO in case hpet is selected as
>> host timer.
> 
> Yeah that can't hurt although since hpet is periodic we don't risk
> forgetting to rearm the timer.
> 
> Can you explain the signalfd idea a little more?  I'm not sure that
> model would work for !CONFIG_IOTHREAD.  Maybe if QEMU itself uses
> signalfd but KVM sigmask is used to unblock the signals during guest
> code execution (and a solution for TCG too).

Will push a version I would like you to test as well in a few minutes.
This is already the concept: As under IOTHREAD, we will block SIGIO and
SIGALARM the whole time - except during KVM_RUN - and catch those
signals via qemu_signalfd in the main select loop. Of course, this
includes setting up the kvm signal mask properly as well (was already
part of my previously posted series for other reasons).

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux



reply via email to

[Prev in Thread] Current Thread [Next in Thread]