From: Takuya Yoshikawa Date: Wed, 8 Feb 2012 04:01:09 +0000 (+0900) Subject: KVM: Simplify ifndef conditional usage in __kvm_set_memory_region() X-Git-Tag: v3.4-rc1~59^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189a2f7b24677deced3d2a9803969ba69f4b75f6;p=pandora-kernel.git 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 Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed