Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641548 - app-emulation/qemu logs inappropriate error for KVM_AMD on 64-bit intel architecture
Summary: app-emulation/qemu logs inappropriate error for KVM_AMD on 64-bit intel archi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-18 11:47 UTC by faminebadger
Modified: 2018-02-11 18:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description faminebadger 2017-12-18 11:47:57 UTC
I always get the error (not warning or info) "If you have an AMD CPU, you must enable KVM_AMD in your kernel configuration." when checking elogv after compiling qemu.

I don't even have an AMD CPU, I have an intel.  However, the arch name for 64-bit intel is still "amd64", so I suspect the following lines in the qemu ebuild that check for use support for amd64 are not working as intended and are incorrectly assuming that arch amd64 implies an AMD CPU.

> if use amd64 || use x86 || use amd64-linux || use x86-linux; then
> 	CONFIG_CHECK+=" ~KVM_AMD ~KVM_INTEL"
> fi

None of those four are use flags on the package, so I assume they are arch flags and therefore not quite used correctly.

Also, it seems that KVM_AMD and KVM_INTEL checks are always done together, but it would be better to apply KVM_AMD only on AMD systems and KVM_INTEL only on intel systems - otherwise it will always give a false error.
Comment 2 faminebadger 2018-01-15 19:51:56 UTC
Confirmed this fixes the error for me, thanks.
Comment 3 Matthias Maier gentoo-dev 2018-02-11 18:32:24 UTC
That has been fixed a couple of months ago.