PV drivers for HVM (PAE) guests
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
Quoted 7 lines · Ky Srinivasan
We have a build issue when building for PAE guests - the kernel symbol
__supported_pte_maskis 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 functionpfn_pte_ma()only for consumption by the PV front-end driver modules that does not depend on the__supported_pte_maskvariable.
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
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_maskis 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) . Inthis
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_maskvariable.Sounds like the only option. I suggest a module- private version of the
pte_maskwhich defaults to only a limited subset of PTE flags. Optionally you could add in_PAGE_NXif CPUID/EFER allows it.-- Keir
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