|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
Re: [Xen-ia64-devel] Faulty protection key handling
Tristan Gingold wrote:
>> For PV this is not completely true. If an OS uses PKRs, it has the same
>> problem as the hypervisor: one PKR with a specific value must always be
>> loaded
>> for interrupt handling. I would see no problem to use the same PKR and PK
>> value as the hypervisor (PKR 0 with PK value 0, rwx allowed).
>> This would eliminate the restriction to 15 PKRs as well.
> Using this mechanism if fine for PV and should be very easy to implement.
>
> But this implementation can't be merged with VTI. This is a drawback,
> although
> being acceptable IMHO.
Are you sure?
VTI and PV implementation will both need a PKR for hypervisor.
PV could know about this PKR and it's value, so PV would use only 15 other
PKRs.
VTI will use one PKR for the trap vector. The hypervisor should be able to
detect this special PKR and remember the PK value. In the PKR emulation PKR 0
and the VTI special PKR could be swapped, as well as the VTI PK value and
PK value 0.
Example:
VTI domain uses PKR 3 with value 123 for its trap vector.
If VTI domain accesses PKR 3, real PKR 0 is used, VTI access to PKR 0 will use
real PKR 3.
Real PK value 0 is presented as PKR value 123 to VTI domain, while real PK
value 123 is presented as 0.
PV domain could be handled in the same way, but a "clever" PV would use PKR 0
with PK value 0 for the trap vector, so the hypervisor would only do a swap of
identical values.
Juergen
--
Juergen Gross Principal Developer
IP SW OS6 Telephone: +49 (0) 89 636 47950
Fujitsu Siemens Computers e-mail: juergen.gross@xxxxxxxxxxxxxxxxxxx
Otto-Hahn-Ring 6 Internet: www.fujitsu-siemens.com
D-81739 Muenchen Company details: www.fujitsu-siemens.com/imprint.html
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
|
|
|
|