From: Sasha Levin Date: Mon, 28 Nov 2011 09:20:29 +0000 (+0200) Subject: KVM: Refactor and simplify kvm_dev_ioctl_get_supported_cpuid X-Git-Tag: v3.3-rc1~131^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=831bf664e9c1fc08fc6b3984d00d275cac82f5e9;p=pandora-kernel.git KVM: Refactor and simplify kvm_dev_ioctl_get_supported_cpuid This patch cleans and simplifies kvm_dev_ioctl_get_supported_cpuid by using a table instead of duplicating code as Avi suggested. This patch also fixes a bug where kvm_dev_ioctl_get_supported_cpuid would return -E2BIG when amount of entries passed was just right. Signed-off-by: Sasha Levin Signed-off-by: Avi Kivity --- Reading git-diff-tree failed