From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1xSF-0001G8-F0 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:51:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1xSC-0003iR-3p for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:51:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1xSB-0003iH-OT for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:51:03 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 5BA5E2932F8 for ; Mon, 8 Jun 2015 13:51:03 +0000 (UTC) Message-ID: <55759E0A.3090102@redhat.com> Date: Mon, 08 Jun 2015 16:52:10 +0300 From: Gal Hammer MIME-Version: 1.0 References: <1430133591-6197-1-git-send-email-ghammer@redhat.com> <1430133591-6197-5-git-send-email-ghammer@redhat.com> <556F2D51.2000203@redhat.com> <55759BB8.3010604@redhat.com> <55759C1B.7000905@redhat.com> In-Reply-To: <55759C1B.7000905@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V15 4/5] i386: add a Virtual Machine Generation ID device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: imammedo@redhat.com, mst@redhat.com On 08/06/2015 16:43, Paolo Bonzini wrote: > > > On 08/06/2015 15:42, Gal Hammer wrote: >> On 03/06/2015 19:37, Paolo Bonzini wrote: >>> >>> Since Michael said he'd merge this version, there's just one thing I >>> would change. You can access the region only one byte at a time, and >>> let the memory core fix endianness here: >> >> I've applied the change offered below. Thanks. >> >> There are two unanswered questions: >> >> 1. You wrote that I should not use the memory_region_init_io() function. >> Should I use memory_region_init_ram() instead? > > This is related to the uncached vs. cached memory discussion. Michael > agreed that it's okay to do it this way. OK. Nothing is changed for now. >> 2. Is it possible to create a sysbus device using the "-device" command >> line argument? I vaguely recall that it is not possible to do it and >> that's the reason that I specifically add the device in the pc init. > > It's now possible, but it is somewhat complicated. I think it's simpler > to initialize this unconditionally and hide it (via ACPI _STA) if the > vmgenid is all zeros. I didn't understand. I need the device to be a sysbus device so it won't be found as an ISA or a PCI device by Windows. So I need to know what ever or not it is possible to create a sysbus device using "-device". In either way it won't be created if vmgenid is not given so no need to hide it using _STA. Gal. > Paolo >