diff options
author | Sasha Levin <levinsasha928@gmail.com> | 2011-11-28 11:20:29 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 11:22:02 +0200 |
commit | 831bf664e9c1fc08fc6b3984d00d275cac82f5e9 (patch) | |
tree | a75b2baafbd58e9b20991dbab7bdadf2552e756d /kernel | |
parent | fb215366b3c7320ac25dca766a0152df16534932 (diff) | |
download | blackbird-op-linux-831bf664e9c1fc08fc6b3984d00d275cac82f5e9.tar.gz blackbird-op-linux-831bf664e9c1fc08fc6b3984d00d275cac82f5e9.zip |
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 <levinsasha928@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions