All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Pavel Dovgalyuk" <pavel.dovgaluk@ispras.ru>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Mark Burton" <mburton@qti.qualcomm.com>,
	"Bill Mills" <bill.mills@linaro.org>,
	"Marco Liebel" <mliebel@qti.qualcomm.com>,
	"Alexandre Iooss" <erdnaxe@crans.org>,
	"Mahmoud Mandour" <ma.mandourr@gmail.com>,
	"Emilio Cota" <cota@braap.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Wei W. Wang" <wei.w.wang@intel.com>
Subject: Re: Future of icount discussion for next KVM call?
Date: Thu, 16 Feb 2023 11:56:27 +0100	[thread overview]
Message-ID: <87lekxkhes.fsf@secure.mitica> (raw)
In-Reply-To: <CAHDbmO3QSbpKLWKt9uj+2Yo_fT-dC-E4M1Nb=iWHqMSBw35-3w@mail.gmail.com> ("Alex Bennée"'s message of "Thu, 16 Feb 2023 10:23:58 +0000")

Alex Bennée <alex.bennee@linaro.org> wrote:
> (replying all because qemu-devel rejected my email again)
>
> On Thu, 16 Feb 2023 at 10:19, Alex Bennée <alex.bennee@linaro.org> wrote:
>
>> Hi Juan,
>>
>> Do we have an agenda for next weeks KVM call yet? If there is space I'd
>> like to take some time to discuss the future direction of icount.

For next week we have:
- more single binary qemu (philippe?)
- TDX migration from intel.
  We asked them on the previous call to change their design to transfer
  stuff through migration channels and not create a new channel.  But I
  haven't heard from intel. (wei?)
  They agreed to send the slides and post the code before continue
  discussion.

And now I like the title of you topic

- Future Direction of icount

O:-)

So, I will recommend 20 minutes each if Wei shows up, or 30/30 for the
rest.

What do the rest of the people think.

>> Specifically I believe there might be some proposals for how we could
>> support icount with MTTCG worth discussing. From my point of view icount
>> provides too things:
>>
>>   - a sense of time vaguely related to execution rather than wall clock
>>   - determinism
>>
>> I would love to divorce the former from icount and punt it to plugins.
>> The plugin would be free to instrument as heavily or lightly as it sees
>> fit and provide its best guess as to guest time on demand. I wrote this
>> idea up as a card in Linaro's JIRA if anyone is interested:
>>
>>   https://linaro.atlassian.net/browse/QEMU-481
>>
>> Being able to punt cost modelling and sense of time into plugins would
>> allow the core icount support to concentrate on determinism. Then any
>> attempt to enable icount for MTTCG would then have to ensure it stays
>> deterministic.
>>
>> Richard and I have discussed the problem a few times and weren't sure it
>> was solvable but I'm totally open to hearing ideas on how to do it.
>> Fundamentally I think we would have to ensure any TB's doing IO would
>> have to execute in an exclusive context. The TCG code already has
>> mechanisms to ensure all IO is only done at the end of blocks so it
>> doesn't seem a huge leap to ensure we execute those blocks exclusively.
>> However there is still the problem of what to do about other pure
>> computation threads getting ahead or behind of the IO blocks on
>> subsequent runs.
>>
>> Anyway does anyone else have ideas to bring to the discussion?

Hat on to you O:-)

Open discussion with a Jira Epic and a good introduction.
I am sorry that I am not an expert (or even newbie) on that part of qemu
to give apport anything.

Thanks, Juan.



  reply	other threads:[~2023-02-16 10:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87bklt9alc.fsf@linaro.org>
2023-02-16 10:23 ` Future of icount discussion for next KVM call? Alex Bennée
2023-02-16 10:56   ` Juan Quintela [this message]
2023-02-16 12:20     ` Markus Armbruster
2023-02-16 12:45       ` Philippe Mathieu-Daudé
2023-02-16 12:46       ` Alex Bennée
2023-02-16 13:56   ` Juan Quintela
2023-02-16 14:36     ` Wang, Wei W
2023-02-25  1:46       ` Wang, Wei W
2023-03-03  9:12         ` Wang, Wei W

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=87lekxkhes.fsf@secure.mitica \
    --to=quintela@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=bill.mills@linaro.org \
    --cc=cota@braap.org \
    --cc=erdnaxe@crans.org \
    --cc=f4bug@amsat.org \
    --cc=ma.mandourr@gmail.com \
    --cc=mburton@qti.qualcomm.com \
    --cc=mliebel@qti.qualcomm.com \
    --cc=pavel.dovgaluk@ispras.ru \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=wei.w.wang@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.