OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

virtio-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [virtio-comment] [PATCH 1/3] shared memory: Define shared memory regions


>> On s390x, we have to define the size of the host->guest page table when
>> starting the guest. So we need some upper limit.
> 
> That's OK; x86 also has that because they have a limited physical
> and virtual address size [which may or may not be correctly passed to
> the guest!].
> 
>> Mapping anywhere, I
>> really don't like. Letting the guest define the mapping, I really don't
>> like.
> 
> Well it's OK to have a hole for it, but letting the guest choose where
> those mappings go in the hole is the norm for PCI (there are
> exceptions).

Yes, but at least if we need a new interface for this for s390x (what I
assume), not allowing the guest to map is obviously easier. However if
there is good reason why it is needed, nothing speaks against it. We
just have to offer the guest enough information to do it.

> 
>> We can of course switch the order of mappings
>>
>> [0x000000000000000      ]
>> ... Memory region containing RAM
>> [ram_size         	]
>> ... Memory region for memory devices (virtio-pmem, virtio-mem ...)
>> [maxram_size - ram_size ]
>> ... Memory region for e.g. special PCI/CCW devices
>> [                    TBD]
>>
>> We can size TBD in a way that we e.g. max out the current page table
>> size before having to switch to more levels.
> 
> Yes, that's fine to set some upper limit; you've just got to make sure
> that the hypervisor knows where it can put stuff and if the guest
> does PCI that it knows where it's allowed to put stuff and as long
> as the two don't overlap everyone is happy.
> 
> [We should probably take this level of detail off this list - it's
> parsecs away from the detail of virtio]

Yes indeed, I guess this gives Conny an idea on how it could work, so
now she can design an interface - and clarify all the details ;)

I guess we'll need something for both, virtio-ccw and virtio-pci on s390x.

I'll be happy to discuss this off-list.

*flies away*

Have a great weekend Dave!


-- 

Thanks,

David / dhildenb


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]