From: Paolo Bonzini <pbonzini@redhat.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: Kevin O'Connor <kevin@koconnor.net>,
kvm@vger.kernel.org, "Michael S. Tsirkin" <mst@redhat.com>,
seabios-devel <seabios@seabios.org>,
qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org,
target-devel@vger.kernel.org,
Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check
Date: Fri, 29 Mar 2013 09:14:14 +0100 [thread overview]
Message-ID: <51554D56.5080004@redhat.com> (raw)
In-Reply-To: <1364525606.10253.69.camel@haakon2.linux-iscsi.org>
Il 29/03/2013 03:53, Nicholas A. Bellinger ha scritto:
> On Thu, 2013-03-28 at 06:13 -0400, Paolo Bonzini wrote:
>>> I think it's the right thing to do, but maybe not the right place
>>> to do this, need to reset after all IO is done, before
>>> ring memory is write protected.
>>
>> Our emails are crossing each other unfortunately, but I want to
>> reinforce this: ring memory is not write protected.
>
> Understood. However, AFAICT the act of write protecting these ranges
> for ROM generates the offending callbacks to vhost_set_memory().
>
> The part that I'm missing is if ring memory is not being write protected
> by make_bios_readonly_intel(), why are the vhost_set_memory() calls
> being invoked..?
Because mappings change for the region that contains the ring. vhost
doesn't know yet that the changes do not affect ring memory,
vhost_set_memory() is called exactly to ascertain that.
Paolo
>
>> Remember that
>> SeaBIOS can even provide virtio-scsi access to DOS, so you must
>> not reset the device. It must remain functional all the time,
>> and the OS's own driver will reset it when it's started.
>>
>
> Mmmm, so a vp_reset() is out of the question then..
>
> --nab
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: Kevin O'Connor <kevin@koconnor.net>,
kvm@vger.kernel.org, "Michael S. Tsirkin" <mst@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>,
seabios-devel <seabios@seabios.org>,
qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org,
target-devel@vger.kernel.org,
Stefan Hajnoczi <stefanha@redhat.com>,
Asias He <asias@redhat.com>
Subject: Re: [Qemu-devel] [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check
Date: Fri, 29 Mar 2013 09:14:14 +0100 [thread overview]
Message-ID: <51554D56.5080004@redhat.com> (raw)
In-Reply-To: <1364525606.10253.69.camel@haakon2.linux-iscsi.org>
Il 29/03/2013 03:53, Nicholas A. Bellinger ha scritto:
> On Thu, 2013-03-28 at 06:13 -0400, Paolo Bonzini wrote:
>>> I think it's the right thing to do, but maybe not the right place
>>> to do this, need to reset after all IO is done, before
>>> ring memory is write protected.
>>
>> Our emails are crossing each other unfortunately, but I want to
>> reinforce this: ring memory is not write protected.
>
> Understood. However, AFAICT the act of write protecting these ranges
> for ROM generates the offending callbacks to vhost_set_memory().
>
> The part that I'm missing is if ring memory is not being write protected
> by make_bios_readonly_intel(), why are the vhost_set_memory() calls
> being invoked..?
Because mappings change for the region that contains the ring. vhost
doesn't know yet that the changes do not affect ring memory,
vhost_set_memory() is called exactly to ascertain that.
Paolo
>
>> Remember that
>> SeaBIOS can even provide virtio-scsi access to DOS, so you must
>> not reset the device. It must remain functional all the time,
>> and the OS's own driver will reset it when it's started.
>>
>
> Mmmm, so a vp_reset() is out of the question then..
>
> --nab
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2013-03-29 8:14 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 0:34 [PATCH V3 WIP 0/3] vhost-scsi: new device supporting the tcm_vhost Linux kernel module Asias He
2013-03-19 0:34 ` [Qemu-devel] " Asias He
2013-03-19 0:34 ` [PATCH V3 WIP 1/3] virtio-scsi: create VirtIOSCSICommon Asias He
2013-03-19 0:34 ` [Qemu-devel] " Asias He
2013-03-19 0:34 ` [PATCH V3 WIP 2/3] vhost-scsi: new device supporting the tcm_vhost Linux kernel module Asias He
2013-03-19 0:34 ` [Qemu-devel] " Asias He
2013-03-19 8:40 ` Stefan Hajnoczi
2013-03-19 8:40 ` [Qemu-devel] " Stefan Hajnoczi
2013-03-19 0:34 ` Asias He
2013-03-19 0:34 ` [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check Asias He
2013-03-19 0:34 ` [Qemu-devel] " Asias He
2013-03-19 8:40 ` Stefan Hajnoczi
2013-03-19 8:40 ` [Qemu-devel] " Stefan Hajnoczi
2013-03-19 8:47 ` Asias He
2013-03-19 8:47 ` [Qemu-devel] " Asias He
2013-03-20 1:57 ` Nicholas A. Bellinger
2013-03-20 1:57 ` Nicholas A. Bellinger
2013-03-20 1:57 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-20 9:51 ` Michael S. Tsirkin
2013-03-20 9:51 ` [Qemu-devel] " Michael S. Tsirkin
2013-03-27 21:31 ` Nicholas A. Bellinger
2013-03-27 21:31 ` Nicholas A. Bellinger
2013-03-27 21:31 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-27 21:56 ` Michael S. Tsirkin
2013-03-27 21:56 ` [Qemu-devel] " Michael S. Tsirkin
2013-03-27 22:33 ` Nicholas A. Bellinger
2013-03-27 22:33 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-28 6:45 ` Nicholas A. Bellinger
2013-03-28 6:45 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-28 7:35 ` Nicholas A. Bellinger
2013-03-28 7:35 ` Nicholas A. Bellinger
2013-03-28 7:35 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-28 9:04 ` Michael S. Tsirkin
2013-03-28 9:04 ` [Qemu-devel] " Michael S. Tsirkin
2013-03-28 10:03 ` Paolo Bonzini
2013-03-28 10:03 ` [Qemu-devel] " Paolo Bonzini
2013-03-29 2:47 ` Nicholas A. Bellinger
2013-03-29 2:47 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-29 2:47 ` Nicholas A. Bellinger
2013-03-28 10:13 ` Paolo Bonzini
2013-03-28 10:13 ` [Qemu-devel] " Paolo Bonzini
2013-03-29 2:53 ` Nicholas A. Bellinger
2013-03-29 2:53 ` Nicholas A. Bellinger
2013-03-29 2:53 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-29 8:14 ` Paolo Bonzini [this message]
2013-03-29 8:14 ` Paolo Bonzini
2013-04-02 1:05 ` Nicholas A. Bellinger
2013-04-02 1:05 ` Nicholas A. Bellinger
2013-04-02 1:05 ` [Qemu-devel] " Nicholas A. Bellinger
2013-04-02 13:27 ` Michael S. Tsirkin
2013-04-02 13:27 ` [Qemu-devel] " Michael S. Tsirkin
2013-04-03 4:04 ` Nicholas A. Bellinger
2013-04-03 4:04 ` Nicholas A. Bellinger
2013-04-03 4:04 ` [Qemu-devel] " Nicholas A. Bellinger
2013-04-03 4:59 ` Nicholas A. Bellinger
2013-04-03 4:59 ` [Qemu-devel] " Nicholas A. Bellinger
2013-04-03 6:47 ` Paolo Bonzini
2013-04-03 6:47 ` [Qemu-devel] " Paolo Bonzini
2013-03-29 3:28 ` Nicholas A. Bellinger
2013-03-29 3:28 ` [Qemu-devel] " Nicholas A. Bellinger
2013-03-29 3:28 ` Nicholas A. Bellinger
2013-03-27 22:33 ` Nicholas A. Bellinger
2013-03-27 21:56 ` Michael S. Tsirkin
2013-03-19 0:34 ` Asias He
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=51554D56.5080004@redhat.com \
--to=pbonzini@redhat.com \
--cc=kevin@koconnor.net \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=nab@linux-iscsi.org \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
--cc=stefanha@redhat.com \
--cc=target-devel@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.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 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.