]> Git Repo - qemu.git/commit - configure
xen: make xen_enabled even more clever
authorAlexander Graf <[email protected]>
Sun, 17 Jul 2011 05:30:29 +0000 (07:30 +0200)
committerAlexander Graf <[email protected]>
Tue, 26 Jul 2011 04:43:11 +0000 (06:43 +0200)
commit59d21e537b6c3a964d4e346e9cf2a1e17267a27c
treed15748ad07c926b722dc71dae679c0357b27c0a1
parentf03a4ac12222ce1fb7886dc6cb38a027b73ccff2
xen: make xen_enabled even more clever

When using xen_enabled() we're currently only checking if xen is enabled
at all during the build. But what if you want to build multiple targets
out of which only one can potentially run xen code?

That means that for generic code we'll still have to fall back to the
variable and potentially slow the code down, but it's not as important as
that is mostly xen device emulation which is not touched for non-xen targets.

The target specific code however can with this patch see that it's unable to
ever execute xen code. We can thus always return 0 on xen_enabled(), giving
gcc enough hints to evict the mapcache code from the target memory management
code.

Signed-off-by: Alexander Graf <[email protected]>
Acked-by: Anthony PERARD <[email protected]>
configure
hw/xen.h
This page took 0.026086 seconds and 4 git commands to generate.