qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Blue Swirl <blauwirbel@gmail.com>,
	Paul Brook <paul@codesourcery.com>,
	Gleb Natapov <gleb@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: [Bug 599958] Re: Timedrift problems with Win7: hpet missing time drift fixups
Date: Mon, 05 Jul 2010 16:47:34 +0300	[thread overview]
Message-ID: <4C31E276.7010801@redhat.com> (raw)
In-Reply-To: <4C31DE17.9090802@siemens.com>

On 07/05/2010 04:28 PM, Jan Kiszka wrote:
> Avi Kivity wrote:
>    
>> On 07/05/2010 03:16 PM, Jan Kiszka wrote:
>>      
>>>> It's also architecturally cleaner.  Masks and acks are architectural
>>>> events.  Injections are not - there's the edge on the LINT0 or INTI2
>>>> pins, generation of an APIC message, receipt of the APIC message, and
>>>> assertion of the APIC-to-core interrupt interface.  I'm not sure how the
>>>> proposed interface maps to that.
>>>>
>>>>          
>>> Our emulation does not reflect every architectural detail of the
>>> delivery path anyway.
>>>        
>> Usually, when that happens, we get an obscure bug.
>>
>> So if we add a facility, especially across the user/kernel boundary,
>> it's better to have it conform to the architecture.  That reduces the
>> chance it has a serious hidden bug.
>>      
> Neither ack/mask notifiers (past the IRQ controller) nor injection
> return values are part of any architecture we emulate.

Right.  But placing a tap on something that exists architectually means 
it's likely to survive implementation changes.

>   What is driving
> us are the requirements of the de-coalescing workarounds we want to
> build on top and the impact on existing design.
>    

In the case of qemu<->kvm interfaces, also the longevity of these 
interfaces.

Note I'm not advocating a mask/ack solution.  It's pretty complicated 
and I'm not sure the benefits outweigh the complexity.  But I want us to 
examine all options, especially as I don't like delivery checks very much.

>>> The abstraction is always an IRQ line which can be
>>> high or low (sometimes it is only high, but this is a bug).
>>>
>>>        
>> That's a bug in the use of qemu_irq, not qemu_irq itself.
>>
>> But qemu_irq needs to remember its state, otherwise when an irq
>> controller unmasks a level-triggered line, it won't see the interrupt.
>>      
> I think it's currently the IRQ controller's job to keep track of the
> line state during masked periods. Moving this to qemu_irq is definitely
> better but requires some care (e.g. when vmstates are involved).
>    

If everything is done correctly no new vmstates are needed.  The irq 
producer, when its state is reloaded, will output exactly the same value 
as when the state was saved.

The irq line qemu_irq models doesn't have a flip-flop, so it doesn't 
have state.  Similarly, the irq inputs on the irq controllers don't have 
flip flops attached (some do), so ioapic->irr for example shouldn't be 
state.

(some care is needed on load to avoid spurious edges)

-- 
error compiling committee.c: too many arguments to function

  reply	other threads:[~2010-07-05 13:47 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29 21:18 [Qemu-devel] [Bug 599958] [NEW] Timedrift problems with Win7 + qemu-kvm Lucas Meneghel Rodrigues
2010-06-29 21:18 ` [Qemu-devel] [Bug 599958] " Lucas Meneghel Rodrigues
2010-06-29 21:18 ` Lucas Meneghel Rodrigues
2010-06-29 21:19 ` Lucas Meneghel Rodrigues
2010-06-29 21:45 ` Anthony Liguori
2010-06-29 21:53 ` Lucas Meneghel Rodrigues
2010-06-30 14:17 ` Lucas Meneghel Rodrigues
2010-06-30 14:38 ` [Qemu-devel] [Bug 599958] Re: Timedrift problems with Win7: hpet missing time drift fixups Anthony Liguori
2010-07-01  7:13   ` [Qemu-devel] " Jan Kiszka
2010-07-01  8:19     ` Gleb Natapov
2010-07-01 15:45       ` Paul Brook
2010-07-01 18:50         ` Anthony Liguori
2010-07-01 21:40           ` Paul Brook
2010-07-03  7:39             ` Jan Kiszka
2010-07-03  7:49               ` Blue Swirl
2010-07-03  7:55                 ` Jan Kiszka
2010-07-04 22:06                   ` Paul Brook
2010-07-05  6:39                     ` Jan Kiszka
2010-07-05  6:42                       ` Gleb Natapov
2010-07-05  6:49                         ` Jan Kiszka
2010-07-05  7:00                           ` Gleb Natapov
2010-07-05  7:36                             ` Jan Kiszka
2010-07-05  8:47                               ` Avi Kivity
2010-07-05  9:07                                 ` Jan Kiszka
2010-07-05  9:09                                   ` Gleb Natapov
2010-07-05  9:23                                   ` Avi Kivity
2010-07-05 11:13                                     ` Jan Kiszka
2010-07-05 11:40                                       ` Avi Kivity
2010-07-05 12:16                                         ` Jan Kiszka
2010-07-05 12:20                                           ` Gleb Natapov
2010-07-05 13:24                                             ` Jan Kiszka
2010-07-05 13:42                                               ` Avi Kivity
2010-07-05 13:44                                                 ` Gleb Natapov
2010-07-05 12:23                                           ` Avi Kivity
2010-07-05 13:28                                             ` Jan Kiszka
2010-07-05 13:47                                               ` Avi Kivity [this message]
2010-07-05 17:12                                                 ` Blue Swirl
2010-07-05 17:32                                                   ` Jan Kiszka
2010-07-05 17:45                                                   ` Avi Kivity
2010-07-01 18:42     ` Anthony Liguori
2010-06-30 15:40 ` [Qemu-devel] " Lucas Meneghel Rodrigues
2013-10-01  9:34 ` Ben A
2013-10-01 15:56   ` Gleb Natapov
2013-10-01 16:23     ` Ben "Root" Anderson
2013-10-01 16:33       ` Gleb Natapov
2013-10-01 16:36         ` Ben "Root" Anderson
2013-10-01 16:47           ` Gleb Natapov
2013-10-01  9:35 ` Ben A
2014-06-15 23:31 ` AndCycle
2019-05-22  7:27 ` Thomas Huth
2019-05-24 14:58 ` Lucas Meneghel Rodrigues
2019-07-24  4:17 ` Launchpad Bug Tracker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C31E276.7010801@redhat.com \
    --to=avi@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=gleb@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).