Revision 94a8d39a configure
b/configure | ||
---|---|---|
1662 | 1662 |
#if !defined(KVM_API_VERSION) || KVM_API_VERSION < 12 || KVM_API_VERSION > 12 |
1663 | 1663 |
#error Invalid KVM version |
1664 | 1664 |
#endif |
1665 |
#if !defined(KVM_CAP_USER_MEMORY) |
|
1666 |
#error Missing KVM capability KVM_CAP_USER_MEMORY |
|
1667 |
#endif |
|
1668 |
#if !defined(KVM_CAP_SET_TSS_ADDR) |
|
1669 |
#error Missing KVM capability KVM_CAP_SET_TSS_ADDR |
|
1670 |
#endif |
|
1671 |
#if !defined(KVM_CAP_DESTROY_MEMORY_REGION_WORKS) |
|
1672 |
#error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS |
|
1673 |
#endif |
|
1674 |
#if !defined(KVM_CAP_USER_NMI) |
|
1675 |
#error Missing KVM capability KVM_CAP_USER_NMI |
|
1665 |
EOF |
|
1666 |
must_have_caps="KVM_CAP_USER_MEMORY \ |
|
1667 |
KVM_CAP_DESTROY_MEMORY_REGION_WORKS \ |
|
1668 |
KVM_CAP_COALESCED_MMIO \ |
|
1669 |
KVM_CAP_SYNC_MMU \ |
|
1670 |
" |
|
1671 |
if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) ; then |
|
1672 |
must_have_caps="$caps \ |
|
1673 |
KVM_CAP_SET_TSS_ADDR \ |
|
1674 |
KVM_CAP_EXT_CPUID \ |
|
1675 |
KVM_CAP_CLOCKSOURCE \ |
|
1676 |
KVM_CAP_NOP_IO_DELAY \ |
|
1677 |
KVM_CAP_PV_MMU \ |
|
1678 |
KVM_CAP_MP_STATE \ |
|
1679 |
KVM_CAP_USER_NMI \ |
|
1680 |
" |
|
1681 |
fi |
|
1682 |
for c in $must_have_caps ; do |
|
1683 |
cat >> $TMPC <<EOF |
|
1684 |
#if !defined($c) |
|
1685 |
#error Missing KVM capability $c |
|
1676 | 1686 |
#endif |
1687 |
EOF |
|
1688 |
done |
|
1689 |
cat >> $TMPC <<EOF |
|
1677 | 1690 |
int main(void) { return 0; } |
1678 | 1691 |
EOF |
1679 | 1692 |
if test "$kerneldir" != "" ; then |
... | ... | |
1708 | 1721 |
| awk -F "error: " '{if (NR>1) printf(", "); printf("%s",$2);}'` |
1709 | 1722 |
if test "$kvmerr" != "" ; then |
1710 | 1723 |
echo -e "${kvmerr}\n\ |
1711 |
NOTE: To enable KVM support, update your kernel to 2.6.29+ or install \
|
|
1712 |
recent kvm-kmod from http://sourceforge.net/projects/kvm."
|
|
1724 |
NOTE: To enable KVM support, update your kernel to 2.6.29+ or install \ |
|
1725 |
recent kvm-kmod from http://sourceforge.net/projects/kvm." |
|
1713 | 1726 |
fi |
1714 | 1727 |
fi |
1715 | 1728 |
feature_not_found "kvm" |
Also available in: Unified diff