kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dor Laor <dlaor@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Avi Kivity <avi@redhat.com>, kvm-devel <kvm@vger.kernel.org>,
	Gleb Natapov <gleb@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	John Cooper <john.cooper@redhat.com>,
	Alexander Graf <agraf@suse.de>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] cpuid problem in upstream qemu with kvm
Date: Thu, 07 Jan 2010 15:42:54 +0200	[thread overview]
Message-ID: <4B45E4DE.8060100@redhat.com> (raw)
In-Reply-To: <4B45DE4A.6010608@codemonkey.ws>

On 01/07/2010 03:14 PM, Anthony Liguori wrote:
> On 01/07/2010 06:40 AM, Avi Kivity wrote:
>> On 01/07/2010 02:33 PM, Anthony Liguori wrote:
>>>
>>> There's another option.
>>>
>>> Make cpuid information part of live migration protocol, and then
>>> support something like -cpu Xeon-3550. We would remember the exact
>>> cpuid mask we present to the guest and then we could validate that we
>>> can obtain the same mask on the destination.

It solves controlling the destination qemu execution all right but does 
not change the initial spawning of the original guest - to know whether 
,-syscall is needed or not.

Anyway, I'm in favor of it too.

>>
>> Currently, our policy is to only migrate dynamic (from the guest's
>> point of view) state, and specify static state on the command line [1].
>>
>> I think your suggestion makes a lot of sense, but I'd like to expand
>> it to move all guest state, whether dynamic or static. So '-m 1G'
>> would be migrated as well (but not -mem-path). Similarly, in -drive
>> file=...,if=ide,index=1, everything but file=... would be migrated.
>
> Yes, I agree with this and it should be in the form of an fdt. This
> means we need full qdev conversion.
>
> But I think cpuid is somewhere in the middle with respect to static vs.
> dynamic. For instance, -cpu host is very dynamic in that you get very
> difficult results on different systems. Likewise, because of kvm
> filtering, even -cpu qemu64 can be dynamic.
>
> So if we didn't have filtering and -cpu host, I'd agree that it's
> totally static but I think in the current state, it's dynamic.
>
>> This has an advantage wrt hotplug: since qemu is responsible for
>> migrating all guest visible information, the migrator is no longer
>> responsible for replaying hotplug events in the exact sequence they
>> happened.
>
> Yup, 100% in agreement as a long term goal.
>
>> In short, I think we should apply your suggestion as broadly as possible.
>>
>> [1] cpuid state is actually dynamic; repeated cpuid instruction
>> execution with the same operands can return different results. kvm
>> supports querying and setting this state.
>
> Yes, and we save some cpuid state in cpu. We just don't save all of it.
>
> Regards,
>
> Anthony Liguori
>


  reply	other threads:[~2010-01-07 13:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4B30EFDF.4060202@codemonkey.ws>
     [not found] ` <4B31F1BA.10005@redhat.com>
     [not found]   ` <4B43D4E2.9050102@codemonkey.ws>
     [not found]     ` <4B4402B1.1030605@redhat.com>
     [not found]       ` <4B448F36.8030605@codemonkey.ws>
     [not found]         ` <4B449467.4070606@redhat.com>
     [not found]           ` <4B4494FC.1080907@codemonkey.ws>
     [not found]             ` <4B449608.7040102@redhat.com>
     [not found]               ` <F67360FA-5DDF-41A1-87AA-726D13A87AD5@suse.de>
     [not found]                 ` <4B4496E9.2030201@redhat.com>
     [not found]                   ` <20100106142231.GF2248@redhat.com>
     [not found]                     ` <4B449EE7.4050401@redhat.com>
     [not found]                       ` <4B44A2C6.4050504@redhat.com>
     [not found]                         ` <4B44A965.9040300@codemonkey.ws>
2010-01-07  8:03                           ` [Qemu-devel] cpuid problem in upstream qemu with kvm Dor Laor
2010-01-07  8:18                             ` Avi Kivity
2010-01-07  9:11                               ` Dor Laor
2010-01-07  9:24                                 ` Avi Kivity
2010-01-07  9:40                                   ` Dor Laor
2010-01-07 11:39                                     ` Anthony Liguori
2010-01-07 11:44                                       ` Dor Laor
2010-01-07 12:00                                         ` Avi Kivity
2010-01-07 12:20                                           ` Dor Laor
2010-01-07 12:33                                             ` Anthony Liguori
2010-01-07 12:40                                               ` Avi Kivity
2010-01-07 12:47                                                 ` Daniel P. Berrange
2010-01-07 12:50                                                   ` Avi Kivity
2010-01-07 13:14                                                 ` Anthony Liguori
2010-01-07 13:42                                                   ` Dor Laor [this message]
2010-01-11 13:26                                                 ` Markus Armbruster
2010-01-07 11:59                                     ` Avi Kivity
2010-01-07 12:17                                       ` Dor Laor
2010-01-07  8:24                             ` Daniel P. Berrange
2010-01-07  9:13                               ` Dor Laor

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=4B45E4DE.8060100@redhat.com \
    --to=dlaor@redhat.com \
    --cc=agraf@suse.de \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=gleb@redhat.com \
    --cc=john.cooper@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mst@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).