diff options
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | 2012-02-08 05:01:09 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-08 13:10:21 +0100 |
commit | 189a2f7b24677deced3d2a9803969ba69f4b75f6 (patch) | |
tree | f39aabbaf24bfea65bbf77e215abac829fcb54d6 /arch/ia64/kvm/kvm-ia64.c | |
parent | KVM: Split lpage_info creation out from __kvm_set_memory_region() (diff) | |
download | linux-189a2f7b24677deced3d2a9803969ba69f4b75f6.tar.xz linux-189a2f7b24677deced3d2a9803969ba69f4b75f6.zip |
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 <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64/kvm/kvm-ia64.c')
0 files changed, 0 insertions, 0 deletions