Skip to contentSkip to conversation

PV drivers for HVM (PAE) guests

DISCUSSION Ky Srinivasan 2 participants 4 messages Oct 19, 2006 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

We have a build issue when building for PAE guests - the kernel symbol __supported_pte_mask is not exported on any of the kernels of interest (2.6.5, 2.6.9, 2.6.16..) and is used in the function: pfn_pte_ma (maddr.h) . In this scenario, this function is used only by the front-end drivers that are running within the unmodified guests. Would it make sense to have an implementation of the function pfn_pte_ma() only for consumption by the PV front-end driver modules that does not depend on the __supported_pte_mask variable.

Regards,

K. Y

#3 lore raw
Quoted 7 lines · Ky Srinivasan

We have a build issue when building for PAE guests - the kernel symbol __supported_pte_mask is not exported on any of the kernels of interest (2.6.5, 2.6.9, 2.6.16..) and is used in the function: pfn_pte_ma (maddr.h) . In this scenario, this function is used only by the front-end drivers that are running within the unmodified guests. Would it make sense to have an implementation of the function pfn_pte_ma() only for consumption by the PV front-end driver modules that does not depend on the __supported_pte_mask variable.

Sounds like the only option. I suggest a module-private version of the pte_mask which defaults to only a limited subset of PTE flags. Optionally you could add in _PAGE_NX if CPUID/EFER allows it.

-- Keir

#4 lore raw

Thanks. I will send you a patch.

Regards,

K. Y

Quoted 1 line
Quoted 1 line
Quoted 1 line

On Thu, Oct 19, 2006 at 10:12 AM, in message

<C15D4675.2CE6%[email protected]>, Keir Fraser

Quoted 20 lines · <[email protected]> wrote:
Quoted 2 lines · Ky Srinivasan

We have a build issue when building for PAE guests - the kernel symbol __supported_pte_mask is not exported on any of the kernels of interest

(2.6.5,

Quoted 1 line

2.6.9, 2.6.16..) and is used in the function: pfn_pte_ma (maddr.h) . In

this

Quoted 1 line

scenario, this function is used only by the front- end drivers that are

running

Quoted 3 lines

within the unmodified guests. Would it make sense to have an implementation of the function pfn_pte_ma() only for consumption by the PV front- end driver modules that does not depend on the __supported_pte_mask variable.

Sounds like the only option. I suggest a module- private version of the pte_mask which defaults to only a limited subset of PTE flags. Optionally you could add in _PAGE_NX if CPUID/EFER allows it.

-- Keir

#5 lore raw
Quoted 5 lines · Ky Srinivasan

Thanks. I will send you a patch.

Regards,

K. Y

Logically this belongs in your external patch, as this is a compat issue.

-- Keir