qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Glauber Costa <glommer@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, avi@redhat.com
Subject: [Qemu-devel] Re: [PATCH] RFC: use logging count for individual regions
Date: Tue, 28 Jul 2009 08:48:49 +0200	[thread overview]
Message-ID: <4A6E9F51.5050109@web.de> (raw)
In-Reply-To: <20090728010807.GR4776@poweredge.glommer>

[-- Attachment #1: Type: text/plain, Size: 1924 bytes --]

Glauber Costa wrote:
> On Sat, Jul 25, 2009 at 11:28:20AM +0200, Jan Kiszka wrote:
>> Glauber Costa wrote:
>>> qemu-kvm use this scheme of logging count of individual regions,
>>> which is, IMHO, more flexible which the one we have right now.
>>> I'm proposing we use it.
>>>
>>> Anthony, please don't apply this patch yet, as I would want it
>>> to receive proper testing, and FYI, current migration broken ;(
>>> - and I don't really have time to go debug it now.
>>>
>>> Jan: Please let me know what you think of it.
>> No principle concerns. But before looking into details: what additional
>> use cases will it cover (maybe some example from qemu-kvm), or what
>> existing code can it help to simplify?
> 
> Maybe avi can provide more input here, but to the very least, I believe this
> approach is more proven, since it lived in qemu-kvm for a while now. Although more
> cumbersome, the bits in avi's tree usually work better for kvm-related stuff.

As qemu-kvm uses different code here and has different instrumentation
in the devices, it's a bit tricky to asses what it buys upstream. I'm
not against the counting, but I would like to see proper reasoning in
the changelog.

> 
> I don't see a particular code path it simplifies, but I believe it can help us finding
> bugs that will manifest in the form of an unbalanced count. It will also work if we ever
> happen to have two entities manipulating dirty bits in the VGA region, like if we some day
> implement dual head or something (although one might arguee that we should change it when
> the time comes...)
> 
> Btw, a side note: in your current scheme, what we do when migration fail? Do we keep migration_log
> up ? I can't find any place in the code where we put it down

Good question. From a first glance I would say the logging continues...
What does qemu-kvm do on this? Can't find a cleanup there either.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

  parent reply	other threads:[~2009-07-28  6:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 20:40 [Qemu-devel] [PATCH] RFC: use logging count for individual regions Glauber Costa
2009-07-25  9:28 ` [Qemu-devel] " Jan Kiszka
2009-07-28  1:08   ` Glauber Costa
2009-07-28  6:36     ` Avi Kivity
2009-07-28  6:50       ` Jan Kiszka
2009-07-28  6:59         ` Avi Kivity
2009-07-28  7:01           ` Jan Kiszka
2009-07-28  6:48     ` Jan Kiszka [this message]
2009-07-27 13:17 ` Anthony Liguori

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=4A6E9F51.5050109@web.de \
    --to=jan.kiszka@web.de \
    --cc=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=glommer@redhat.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).