Searched hist:"20 bccb82ff3ea09bcb7c4ee226d3160cab15f7da" (Results 1 – 3 of 3) sorted by relevance
/qemu/include/qemu/ |
H A D | help-texts.h | 20bccb82ff3ea09bcb7c4ee226d3160cab15f7da Mon Oct 24 15:26:49 UTC 2016 Peter Maydell <peter.maydell@linaro.org> cpu: Support a target CPU having a variable page size
Support target CPUs having a page size which isn't knownn at compile time. To use this, the CPU implementation should: * define TARGET_PAGE_BITS_VARY * not define TARGET_PAGE_BITS * define TARGET_PAGE_BITS_MIN to the smallest value it might possibly want for TARGET_PAGE_BITS * call set_preferred_target_page_bits() in its realize function to indicate the actual preferred target page size for the CPU (and report any error from it)
In CONFIG_USER_ONLY, the CPU implementation should continue to define TARGET_PAGE_BITS appropriately for the guest OS page size.
Machines which want to take advantage of having the page size something larger than TARGET_PAGE_BITS_MIN must set the MachineClass minimum_page_bits field to a value which they guarantee will be no greater than the preferred page size for any CPU they create.
Note that changing the target page size by setting minimum_page_bits is a migration compatibility break for that machine.
For debugging purposes, attempts to use TARGET_PAGE_SIZE before it has been finally confirmed will assert.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
|
/qemu/include/hw/ |
H A D | boards.h | 20bccb82ff3ea09bcb7c4ee226d3160cab15f7da Mon Oct 24 15:26:49 UTC 2016 Peter Maydell <peter.maydell@linaro.org> cpu: Support a target CPU having a variable page size
Support target CPUs having a page size which isn't knownn at compile time. To use this, the CPU implementation should: * define TARGET_PAGE_BITS_VARY * not define TARGET_PAGE_BITS * define TARGET_PAGE_BITS_MIN to the smallest value it might possibly want for TARGET_PAGE_BITS * call set_preferred_target_page_bits() in its realize function to indicate the actual preferred target page size for the CPU (and report any error from it)
In CONFIG_USER_ONLY, the CPU implementation should continue to define TARGET_PAGE_BITS appropriately for the guest OS page size.
Machines which want to take advantage of having the page size something larger than TARGET_PAGE_BITS_MIN must set the MachineClass minimum_page_bits field to a value which they guarantee will be no greater than the preferred page size for any CPU they create.
Note that changing the target page size by setting minimum_page_bits is a migration compatibility break for that machine.
For debugging purposes, attempts to use TARGET_PAGE_SIZE before it has been finally confirmed will assert.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
|
/qemu/system/ |
H A D | vl.c | 20bccb82ff3ea09bcb7c4ee226d3160cab15f7da Mon Oct 24 15:26:49 UTC 2016 Peter Maydell <peter.maydell@linaro.org> cpu: Support a target CPU having a variable page size
Support target CPUs having a page size which isn't knownn at compile time. To use this, the CPU implementation should: * define TARGET_PAGE_BITS_VARY * not define TARGET_PAGE_BITS * define TARGET_PAGE_BITS_MIN to the smallest value it might possibly want for TARGET_PAGE_BITS * call set_preferred_target_page_bits() in its realize function to indicate the actual preferred target page size for the CPU (and report any error from it)
In CONFIG_USER_ONLY, the CPU implementation should continue to define TARGET_PAGE_BITS appropriately for the guest OS page size.
Machines which want to take advantage of having the page size something larger than TARGET_PAGE_BITS_MIN must set the MachineClass minimum_page_bits field to a value which they guarantee will be no greater than the preferred page size for any CPU they create.
Note that changing the target page size by setting minimum_page_bits is a migration compatibility break for that machine.
For debugging purposes, attempts to use TARGET_PAGE_SIZE before it has been finally confirmed will assert.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
|