From: Huang Ying Subject: Re: QEMU, MCE, unpoison memory address across reboot Date: Fri, 24 Dec 2010 11:30:37 +0800 Message-ID: <1293161437.22308.170.camel@yhuang-dev> References: <1292986371.8743.113.camel@yhuang-dev> <20101223142803.GD17819@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , "kvm@vger.kernel.org" , Andi Kleen , Dean Nelson To: Marcelo Tosatti Return-path: Received: from mga01.intel.com ([192.55.52.88]:56090 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753200Ab0LXDa7 (ORCPT ); Thu, 23 Dec 2010 22:30:59 -0500 In-Reply-To: <20101223142803.GD17819@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2010-12-23 at 22:28 +0800, Marcelo Tosatti wrote: > Can't you free and reallocate all guest memory instead, on reboot, if > there's a hwpoisoned page? Then you don't need this interface. Consider about this method. It seems that some guest RAMs are not allocated in qemu_ram_alloc_from_ptr(), that is, host parameter is allocated elsewhere and passed in. I found two: - assigned_dev_register_regions() in hw/device-assignment.c - create_shared_memory_BAR() and ivshmem_read() in hw/ivshmem.c There is no general method to reallocate these memory so far. We may need a flag in struct RAMBlock to track these memory, and ignore them during reallocation. But if there are hwpoisoned pages in these memory, we can not recover. Do you think that is OK? Best Regards, Huang Ying