From: "Nicholas A. Bellinger" Subject: Re: [PATCH V3 WIP 3/3] disable vhost_verify_ring_mappings check Date: Thu, 28 Mar 2013 19:53:26 -0700 Message-ID: <1364525606.10253.69.camel@haakon2.linux-iscsi.org> References: <8300718.16452772.1364465611936.JavaMail.root@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: "Michael S. Tsirkin" , Stefan Hajnoczi , Asias He , qemu-devel@nongnu.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, target-devel@vger.kernel.org, Stefan Hajnoczi , Kevin O'Connor , seabios-devel To: Paolo Bonzini Return-path: Received: from mail.linux-iscsi.org ([67.23.28.174]:35793 "EHLO linux-iscsi.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754169Ab3C2Cx3 (ORCPT ); Thu, 28 Mar 2013 22:53:29 -0400 In-Reply-To: <8300718.16452772.1364465611936.JavaMail.root@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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..? > 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