From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Zhanghaoyu (A)" <haoyu.zhang@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
KVM <kvm@vger.kernel.org>, Gleb Natapov <gleb@redhat.com>,
Avi Kivity <avi@cloudius-systems.com>,
Eric Blake <eblake@redhat.com>,
Luonengjun <luonengjun@huawei.com>,
"Huangweidong (C)" <weidong.huang@huawei.com>,
"Gonglei (Arei)" <arei.gonglei@huawei.com>,
"Gaowei (UVP)" <gao.gaowei@huawei.com>,
"chenliang (T)" <chenliang88@huawei.com>
Subject: Re: hotplug: VM got stuck when attaching a pass-through device to the non-pass-through VM for the first time
Date: Tue, 18 Feb 2014 13:16:15 +0200 [thread overview]
Message-ID: <20140218111615.GE8114@redhat.com> (raw)
In-Reply-To: <53033E6F.60700@redhat.com>
On Tue, Feb 18, 2014 at 12:05:19PM +0100, Paolo Bonzini wrote:
> Il 18/02/2014 11:51, Michael S. Tsirkin ha scritto:
> >>> I agree it's either COW breaking or (similarly) locking pages that
> >>> the guest hasn't touched yet.
> >>>
> >>> You can use prealloc or "-rt mlock=on" to avoid this problem.
> >>>
> >>> Paolo
> >Or the new shared flag - IIRC shared VMAs don't do COW either.
>
> Only if the problem isn't locking and zeroing of untouched pages
> (also, it is not upstream is it?).
No but it's a small patch - part of vhost user patchset.
> Can you make a profile with perf?
>
> Paolo
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "chenliang (T)" <chenliang88@huawei.com>,
Avi Kivity <avi@cloudius-systems.com>,
"Huangweidong (C)" <weidong.huang@huawei.com>,
Gleb Natapov <gleb@redhat.com>, KVM <kvm@vger.kernel.org>,
"Zhanghaoyu (A)" <haoyu.zhang@huawei.com>,
Luonengjun <luonengjun@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Gonglei (Arei)" <arei.gonglei@huawei.com>,
"Gaowei (UVP)" <gao.gaowei@huawei.com>
Subject: Re: [Qemu-devel] hotplug: VM got stuck when attaching a pass-through device to the non-pass-through VM for the first time
Date: Tue, 18 Feb 2014 13:16:15 +0200 [thread overview]
Message-ID: <20140218111615.GE8114@redhat.com> (raw)
In-Reply-To: <53033E6F.60700@redhat.com>
On Tue, Feb 18, 2014 at 12:05:19PM +0100, Paolo Bonzini wrote:
> Il 18/02/2014 11:51, Michael S. Tsirkin ha scritto:
> >>> I agree it's either COW breaking or (similarly) locking pages that
> >>> the guest hasn't touched yet.
> >>>
> >>> You can use prealloc or "-rt mlock=on" to avoid this problem.
> >>>
> >>> Paolo
> >Or the new shared flag - IIRC shared VMAs don't do COW either.
>
> Only if the problem isn't locking and zeroing of untouched pages
> (also, it is not upstream is it?).
No but it's a small patch - part of vhost user patchset.
> Can you make a profile with perf?
>
> Paolo
next prev parent reply other threads:[~2014-02-18 11:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 2:38 hotplug: VM got stuck when attaching a pass-through device to the non-pass-through VM for the first time Zhanghaoyu (A)
2014-02-18 2:38 ` [Qemu-devel] " Zhanghaoyu (A)
2014-02-18 10:38 ` Michael S. Tsirkin
2014-02-18 10:38 ` [Qemu-devel] " Michael S. Tsirkin
2014-02-18 10:42 ` Paolo Bonzini
2014-02-18 10:42 ` [Qemu-devel] " Paolo Bonzini
2014-02-18 10:51 ` Michael S. Tsirkin
2014-02-18 10:51 ` [Qemu-devel] " Michael S. Tsirkin
2014-02-18 11:05 ` Paolo Bonzini
2014-02-18 11:05 ` [Qemu-devel] " Paolo Bonzini
2014-02-18 11:16 ` Michael S. Tsirkin [this message]
2014-02-18 11:16 ` Michael S. Tsirkin
2014-02-24 11:38 ` Zhanghaoyu (A)
2014-02-24 11:38 ` [Qemu-devel] " Zhanghaoyu (A)
2014-02-18 11:17 ` Zhanghaoyu (A)
2014-02-18 11:17 ` [Qemu-devel] " Zhanghaoyu (A)
2014-02-18 10:59 ` Zhanghaoyu (A)
2014-02-18 10:59 ` [Qemu-devel] " Zhanghaoyu (A)
-- strict thread matches above, loose matches on Subject: below --
2014-02-18 2:03 Zhanghaoyu (A)
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=20140218111615.GE8114@redhat.com \
--to=mst@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=avi@cloudius-systems.com \
--cc=chenliang88@huawei.com \
--cc=eblake@redhat.com \
--cc=gao.gaowei@huawei.com \
--cc=gleb@redhat.com \
--cc=haoyu.zhang@huawei.com \
--cc=kvm@vger.kernel.org \
--cc=luonengjun@huawei.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=weidong.huang@huawei.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.