This patch is missing in QEMU:

commit 8f013700ebf96edb4d481e4d2471c3ed246c58ef
hw/riscv: virt: Exit if the user provided -bios in combination with KVM
https://patchwork.kernel.org/project/qemu-devel/patch/20220422003656.1648121-19-alistair.fran...@opensource.wdc.com/

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-starfive-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1985067

Title:
  kvm run failed Bad address

Status in linux-starfive-5.17 package in Ubuntu:
  New

Bug description:
  Running QEMU with linux-starfive-5.17 results in a crash:

  $ qemu-system-riscv64 -M virt -cpu host -accel kvm -m 4G -smp 4 -nographic 
-bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel 
/usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin -object 
memory-backend-file,id=mem,size=4096M,mem-path=/dev/hugepages,share=on -numa 
node,memdev=mem -mem-prealloc -drive file=riscv64_2.img,format=raw,if=virtio 
-drive file=/mnt/cidata-riscv64-2.iso,format=raw,if=virtio,read-only=on -global 
driver=cfi.pflash01,property=secure,value=off -device 
virtio-net-pci,mac=00:00:00:00:01:01,netdev=eth0 -netdev 
user,id=eth0,hostfwd=tcp::8141-:22 -chardev 
socket,id=char1,server=on,path=/tmp/vsock2 -device 
virtio-net-pci,mac=00:00:00:00:01:02,netdev=eth1,mrg_rxbuf=off -netdev 
type=vhost-user,id=eth1,chardev=char1,vhostforce=on,queues=2 
  qemu-system-riscv64: -chardev socket,id=char1,server=on,path=/tmp/vsock2: 
info: QEMU waiting for connection on: disconnected:unix:/tmp/vsock2,server=on
  error: kvm run failed Bad address
   pc       0000000080201738
   mhartid  0000000000000000
   mstatus  0000000200000000
   mip      0000000000000000
   mie      0000000000000000
   mideleg  0000000000000000
   medeleg  0000000000000000
   mtvec    0000000000000000
   mepc     0000000000000000
   mcause   0000000000000000
   mtval    0000000000000000
   mscratch 0000000000000000
   x0/zero  0000000000000000 x1/ra    000000008000f38c x2/sp    
00000000801fee80 x3/gp    0000000000000000
   x4/tp    0000000000000000 x5/t0    00000000801fee00 x6/t1    
0000000000000001 x7/t2    0000000000000000
   x8/s0    00000000801fee90 x9/s1    00000000bf000000 x10/a0   
00000000801fee90 x11/a1   0000000000000000
   x12/a2   0000000000000170 x13/a3   00000000801ff000 x14/a4   
0000000000000048 x15/a5   0000000080201738
   x16/a6   0000000000000000 x17/a7   0000000000000000 x18/s2   
0000000000000000 x19/s3   0000000000000000
   x20/s4   0000000000000000 x21/s5   0000000000000000 x22/s6   
0000000000000000 x23/s7   0000000000000000
   x24/s8   0000000000000000 x25/s9   0000000000000000 x26/s10  
0000000000000000 x27/s11  0000000000000000
   x28/t3   0000000000000000 x29/t4   0000000000000000 x30/t5   
0000000000000000 x31/t6   0000000000000000
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw---- 1 root audio 116,  1 Aug 11 13:39 seq
   crw-rw---- 1 root audio 116, 33 Aug 11 13:39 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.22.0-0ubuntu4
  Architecture: riscv64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  CasperMD5CheckResult: unknown
  DistroRelease: Ubuntu 22.10
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lspci-vt:
   -[0000:00]-+-00.0  Red Hat, Inc. QEMU PCIe Host bridge
              +-01.0  Red Hat, Inc. Virtio network device
              +-02.0  Red Hat, Inc. Virtio network device
              +-03.0  Red Hat, Inc. Virtio block device
              \-04.0  Red Hat, Inc. Virtio block device
  Lsusb: Error: command ['lsusb'] failed with exit code 1:
  Lsusb-t:
   
  Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
  Package: linux (not installed)
  PciMultimedia:
   
  ProcCpuinfoMinimal:
   processor    : 7
   hart         : 7
   isa          : rv64imafdcsuh
   mmu          : sv48
  ProcFB:
   
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.17.0-1004-starfive 
root=UUID=17bdec56-5406-45c4-9cfa-b72c62340cc7 ro default_hugepagesz=2M 
hugepagesz=2M hugepages=5120
  ProcVersionSignature: Ubuntu 5.17.0-1004.5-starfive 5.17.15
  RelatedPackageVersions:
   linux-restricted-modules-5.17.0-1004-starfive N/A
   linux-backports-modules-5.17.0-1004-starfive  N/A
   linux-firmware                                20220711.gitdfa29317-0ubuntu1
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  Tags:  kinetic uec-images
  Uname: Linux 5.17.0-1004-starfive riscv64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: N/A
  _MarkForUpload: True
  acpidump:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-starfive-5.17/+bug/1985067/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to