qemu-kvm doesn't work with qemu-x86_64_defconfig

Hello,
I am trying to build master for qemu-x86_64_defconfig. When I try to boot u-boot.rom as the following everything works fine:
qemu-system-x86_64 -nographic -bios u-boot.rom
U-Boot SPL 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300) Trying to boot from SPI Jumping to 64-bit U-Boot: Note many features are missing
U-Boot 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300)
CPU: QEMU Virtual CPU version 2.5+ DRAM: 128 MiB Loading Environment from nowhere... OK Incorrect expansion ROM header signature 4daa Model: QEMU x86 (I440FX) Net: e1000: 52:54:00:12:34:56 eth0: e1000#0 Hit any key to stop autoboot: 0
When I try to enable KVM as the following, the boot process hangs:
qemu-system-x86_64 -enable-kvm -cpu host -nographic -bios u-boot.rom
U-Boot SPL 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300) Trying to boot from SPI Jumping to 64-bit U-Boot: Note many features are missing
What have I missed? Maybe KVM is just not supported?

+Simon
On Wed, Jul 28, 2021 at 11:22 PM Matwey V. Kornilov matwey.kornilov@gmail.com wrote:
Hello,
I am trying to build master for qemu-x86_64_defconfig. When I try to boot u-boot.rom as the following everything works fine:
qemu-system-x86_64 -nographic -bios u-boot.rom
U-Boot SPL 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300) Trying to boot from SPI Jumping to 64-bit U-Boot: Note many features are missing
U-Boot 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300)
CPU: QEMU Virtual CPU version 2.5+ DRAM: 128 MiB Loading Environment from nowhere... OK Incorrect expansion ROM header signature 4daa Model: QEMU x86 (I440FX) Net: e1000: 52:54:00:12:34:56 eth0: e1000#0 Hit any key to stop autoboot: 0
When I try to enable KVM as the following, the boot process hangs:
qemu-system-x86_64 -enable-kvm -cpu host -nographic -bios u-boot.rom
U-Boot SPL 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300) Trying to boot from SPI Jumping to 64-bit U-Boot: Note many features are missing
What have I missed? Maybe KVM is just not supported?
Yep, at least I did not test u-boot with KVM.
Regards, Bin

чт, 29 июл. 2021 г. в 08:22, Bin Meng bmeng.cn@gmail.com:
+Simon
On Wed, Jul 28, 2021 at 11:22 PM Matwey V. Kornilov matwey.kornilov@gmail.com wrote:
Hello,
I am trying to build master for qemu-x86_64_defconfig. When I try to boot u-boot.rom as the following everything works fine:
qemu-system-x86_64 -nographic -bios u-boot.rom
U-Boot SPL 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300) Trying to boot from SPI Jumping to 64-bit U-Boot: Note many features are missing
U-Boot 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300)
CPU: QEMU Virtual CPU version 2.5+ DRAM: 128 MiB Loading Environment from nowhere... OK Incorrect expansion ROM header signature 4daa Model: QEMU x86 (I440FX) Net: e1000: 52:54:00:12:34:56 eth0: e1000#0 Hit any key to stop autoboot: 0
When I try to enable KVM as the following, the boot process hangs:
qemu-system-x86_64 -enable-kvm -cpu host -nographic -bios u-boot.rom
U-Boot SPL 2021.10-rc1-00027-g22ecb12132 (Jul 28 2021 - 18:18:37 +0300) Trying to boot from SPI Jumping to 64-bit U-Boot: Note many features are missing
What have I missed? Maybe KVM is just not supported?
Yep, at least I did not test u-boot with KVM.
Thanks for confirmation. In any case, u-boot works very quickly even without KVM.
Regards, Bin
participants (2)
-
Bin Meng
-
Matwey V. Kornilov