From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756537Ab3CDLxE (ORCPT ); Mon, 4 Mar 2013 06:53:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755770Ab3CDLxB (ORCPT ); Mon, 4 Mar 2013 06:53:01 -0500 Date: Mon, 4 Mar 2013 13:52:07 +0200 From: Gleb Natapov To: Paolo Bonzini Cc: Hu Tao , kvm list , qemu-devel , "linux-kernel@vger.kernel.org" , "Daniel P. Berrange" , KAMEZAWA Hiroyuki , Jan Kiszka , Blue Swirl , Eric Blake , Andrew Jones , Marcelo Tosatti , Sasha Levin , Luiz Capitulino , Anthony Liguori , Markus Armbruster , Stefan Hajnoczi , Juan Quintela , Orit Wasserman , Kevin Wolf , Wen Congyang , "Michael S. Tsirkin" , Alexander Graf , Alex Williamson , Peter Maydell Subject: Re: [PATCH v13 0/8] pv event interface between host and guest Message-ID: <20130304115207.GO23616@redhat.com> 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> <513486EC.1050709@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <513486EC.1050709@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 04, 2013 at 12:35:08PM +0100, Paolo Bonzini wrote: > 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. > That will no longer be PIIX chipset. And still, if user will not use "buggy" guest that assumes that serial is at 0x3f8 or she configures guest to not use serial, everything will be fine. > 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. IMO there is a big difference between well know serial ISA ports and PIO ports we allocate for our devices. Later have to be discoverable without resorting to probing. On CPU level we do the same with CPUID bits instead of relaying on MSRs #GP. On KVM API level we do the same with capabilities instead of relying on ioctls returning errors. This is not different. -- Gleb.