diff options
author | Takuya Yoshikawa <[email protected]> | 2012-02-08 13:01:09 +0900 |
---|---|---|
committer | Avi Kivity <[email protected]> | 2012-03-08 14:10:21 +0200 |
commit | 189a2f7b24677deced3d2a9803969ba69f4b75f6 (patch) | |
tree | f39aabbaf24bfea65bbf77e215abac829fcb54d6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a64f273a08d16bc66ccc5546bd28b1bba554ec81 (diff) |
KVM: Simplify ifndef conditional usage in __kvm_set_memory_region()
Narrow down the controlled text inside the conditional so that it will
include lpage_info and rmap stuff only.
For this we change the way we check whether the slot is being created
from "if (npages && !new.rmap)" to "if (npages && !old.npages)".
We also stop checking if lpage_info is NULL when we create lpage_info
because we do it from inside the slot creation code block.
Signed-off-by: Takuya Yoshikawa <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions