]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/kvm/kvm.c
i386: kvm: kvm_arch_get_supported_cpuid: move R_EDX hack outside of for loop
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 4 Oct 2012 20:48:53 +0000 (17:48 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 31 Oct 2012 01:39:45 +0000 (23:39 -0200)
commit7b46e5ce81d5107927685e7645b1bd39a1e1cd63
treeff2e2d41c0c98e85fb87a6c994f980e8af37c6c1
parentaee0bf7d8d7564f8f2c40e4501695c492b7dd8d1
i386: kvm: kvm_arch_get_supported_cpuid: move R_EDX hack outside of for loop

The for loop will become a separate function, so clean it up so it can
become independent from the bit hacking for R_EDX.

No behavior change[1], just code movement.

[1] Well, only if the kernel returned CPUID leafs 1 or 0x80000001 as
    unsupported, but there's no kernel version that does that.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/kvm.c