From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCTg5-0002HA-5T for qemu-devel@nongnu.org; Mon, 04 Mar 2013 06:35:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCTg0-0006EE-Bj for qemu-devel@nongnu.org; Mon, 04 Mar 2013 06:35:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCTg0-0006EA-44 for qemu-devel@nongnu.org; Mon, 04 Mar 2013 06:35:28 -0500 Message-ID: <513486EC.1050709@redhat.com> Date: Mon, 04 Mar 2013 12:35:08 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20130303091738.GB23616@redhat.com> <513471F1.5020702@redhat.com> <20130304102131.GK23616@redhat.com> <51347735.9090204@redhat.com> <20130304104301.GL23616@redhat.com> <51347C23.8080802@redhat.com> <20130304105928.GM23616@redhat.com> <51348142.4070206@redhat.com> <20130304112023.GN23616@redhat.com> In-Reply-To: <20130304112023.GN23616@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: Peter Maydell , kvm list , "Michael S. Tsirkin" , Hu Tao , qemu-devel , Markus Armbruster , Blue Swirl , Orit Wasserman , Juan Quintela , Alexander Graf , Jan Kiszka , Andrew Jones , Alex Williamson , Sasha Levin , Stefan Hajnoczi , Luiz Capitulino , KAMEZAWA Hiroyuki , Kevin Wolf , Anthony Liguori , Marcelo Tosatti , "linux-kernel@vger.kernel.org" Il 04/03/2013 12:20, Gleb Natapov ha scritto: > On Mon, Mar 04, 2013 at 12:10:58PM +0100, Paolo Bonzini wrote: >>> It is additional device that >>> may or may not be present depending on a command line. So what if >>> someone configures debugcon or debugexit to use this port? >> >> I haven't checked if debug{con,exit} will pass the _STA test, but if >> they do, the user will get a Ctrl-A or respectively an exit of QEMU when >> the guest panics. >> >> What if someone configures debugcon on port 0x3f8? Some guest will use >> it, some will not. >> > Qemu should fail to start since conflict will be detected during > initialization. Not if you _remove_ the serial port and place debugcon at 0x3f8. Same here, you can remove the panic event port and add debugcon at 0x505. That's the problematic case. But if the user goes to that length, I think we can honestly say we don't care. Paolo >>> We can always >>> blame the users, but I fill that we are making unnecessary compromises. >> >> Once we choose an ISA device, where the user has full control of the >> address space, we already know we'll have to accept compromises. I >> don't think this compromise is particularly bad: do discovery via ACPI >> (nice), accept that the user can trick the AML (ugly). > > Why would have we accept compromises, we may, but I disagree that it > is necessary? If user configures conflicting ports QEMU will detect > it during init, if configuration is correct DSDT should provide enough > information for guests to use configured devices. > > -- > Gleb. >