From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHAbZ-0000Tq-Tk for qemu-devel@nongnu.org; Wed, 04 Sep 2013 06:46:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHAbS-0006QU-NF for qemu-devel@nongnu.org; Wed, 04 Sep 2013 06:46:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHAbS-0006QO-FG for qemu-devel@nongnu.org; Wed, 04 Sep 2013 06:46:26 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r84AkO1D032690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 Sep 2013 06:46:25 -0400 Date: Wed, 4 Sep 2013 13:48:26 +0300 From: "Michael S. Tsirkin" Message-ID: <1378291667-8516-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 0/6] pci: keep window properties up to date List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: imammedo@redhat.com w32/w64 properties that we report in QOM are currently static, but this is wrong: guest firmware can select its own windows: optimal placement for w64 is guest-dependent, further, for Q35, w32 is affected by the MCFG base and size. This detects the actual window configuration used by guest and reports it in QOM. Michael S. Tsirkin (6): q35: make pci window address/size match guest cfg range: add min/max operations on ranges pci: add helper to retrieve the 64-bit range range: add Range to typedefs q35: use 64 bit window programmed by guest piix: use 64 bit window programmed by guest include/hw/pci/pci.h | 1 + include/qemu/range.h | 19 ++++++++++++++++++- include/qemu/typedefs.h | 1 + hw/pci-host/piix.c | 6 ++++++ hw/pci-host/q35.c | 16 ++++++++++++++++ hw/pci/pci.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 85 insertions(+), 1 deletion(-) -- MST