From: Keir Fraser Subject: Re: hvm save restore support Date: Thu, 14 Dec 2006 08:02:51 +0000 Message-ID: References: <20061214024615.GM14562@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061214024615.GM14562@edwin-srv.sh.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhai, Edwin" Cc: Ian Pratt , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14/12/06 2:46 am, "Zhai, Edwin" wrote: >> How did you deal with PCI device init getting moved to hvmloader? Looks like >> this patch reverts some of that, which doesn't seem the right answer. > yes, it's just work around. > but bios code never be called when restore. i think it's why qemu doesn't move > it to bios. > > do you have any good idea? It doesn't matter that BIOS code is not executed on restore. What qemu should be doing is saving the PCI configuration spaces -- at least the important bits (BARs, command register) but probably it may as well save the whole 256 bytes per device. If it's not doing this already then that's rather scary. What if the OS decides to shuffle PCI resources around, which is its right to do? -- Keir