[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] fixed location of share info page in HVM guests


  • To: Olaf Hering <olaf@xxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Tue, 28 Aug 2012 01:13:57 +0100
  • Cc: xen-devel@xxxxxxxxxxxxx
  • Delivery-date: Tue, 28 Aug 2012 00:14:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac2EsgQDsUiFmxaJIkyqtQkd3uEvow==
  • Thread-topic: [Xen-devel] fixed location of share info page in HVM guests

On 27/08/2012 22:56, "Olaf Hering" <olaf@xxxxxxxxx> wrote:

> On Mon, Aug 27, Keir Fraser wrote:
> 
>> On 27/08/2012 22:32, "Olaf Hering" <olaf@xxxxxxxxx> wrote:
>> 
>>>>> Recently I tried to move the shared_info page in the pvops kernel during
>>>>> shutdown, see "xen PVonHVM: move shared_info to MMIO before kexec"
>>>>> patch. But this change was reverted because it caused reboot failures
>>>>> because the actual moving of the shared page is fragile.
>>>> 
>>>> How was it fragile? Moving it into MMIO should just work?
>>> 
>>> The moving itself is not the issue, but the possible access to the page
>>> during the move. Its not atomic, nor can it easily be atomic.
>> 
>> Why not map it into MMIO in the first place, rather than into the middle of
>> RAM? Do that early during boot, and early during resume from
>> save/restore/migrate (i.e., places you presumably already map the
>> shared_info page, but into the middle of RAM)?
> 
> I think there is no easy way to know where the PCI device is located at
> the time the shared info page is configured in the early kernel setup.

How about we guarantee that guests can use the 1MB in address range
0xFED00000-0xFEDFFFFF for whatever mappings they like, guaranteed unused (or
at least, mapped with nothing useful) when guest kernel starts?

This is already, and has always been, the case. But we can etch it in stone
quite easily. :)

Then you can stick shared_info at fed00000 always, plus there's space there
for plenty of other stuff that might one day be useful to map very early.

 -- Keir

> Olaf



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.