Bug 1231719

Summary: AArch64: backport ACPI support
Product: Red Hat Enterprise Linux 7 Reporter: Andrew Jones <drjones>
Component: qemu-kvm-rhevAssignee: Andrew Jones <drjones>
Status: CLOSED CURRENTRELEASE QA Contact: Chao Yang <chayang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: chayang, juzhang, mrezanin, virt-bugs, virt-maint
Target Milestone: rcKeywords: OtherQA
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.3.0-7.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-28 11:54:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1173755, 1244151    

Description Andrew Jones 2015-06-15 09:50:11 UTC
Backport ACPI generation patch series.

Comment 1 Andrew Jones 2015-06-16 10:14:05 UTC
These are the needed commits

37d7c08413cd4307f53c83d43b1b06cf2701d7a7
339240b5cd42bd13d4f6629f2aedf8b4b07459fb
395e5fb4421a03c9d3a002bbb55d56b74024a568
658c27181bf3b08a9cf2fab00ecce7f76065f6af
af5098973136029211848b4999ad5d38bc90180f
ff80dc7fa8045e2b2531888d965424d2b0e1d1b6
afe0b3803f1a5fffe618af5a483d4c9567b5c5b7
6a1f001be3ea7478cac803d03149cfcfc1fa2094
f5d8c8cd792b3712f85a1f9a3a9a719015691975
dc17ab1de53d37ddcca81b16dfeae839322fbe5a
205d1d1c04033b1be4c925e687b6865d1fc1b26b
dfccd8cfd7c5d1b6740463821d84106bbaced44c
c2f7c0c306dcd56725b506d3743eed421e6d0994
982d06c561a62cf7d2a8d31e8a8c107fb3477419
ee246400c1ceef2014e120b718388d5f4aea8a2a
243bdb79fb0b2eda176cdef37700f29068a71d43
d4bec5d876b694f7f13ad3fcfe510ff46e9748d0
8434488400971c6793893b8c9547bc6b97e076ce
ed8b5847e46c24d6e9c286892a00a34bee9b0835
b930fb9db4aa07abb8f3871eb7379242edbdf2a5
922cc8823e484733021a7be5b0e876eba2218623
ea7df04a0217fe6314a1520dde1883c45fefcaaa
467b07dfae6087381d0993ab910253a6c1850457
ed8176a37a8f227e61daddbcf92dc5d1cad45818
616ef329adbb671be783a1dba96d881b9218ff80
e1f776c434f8f18079b82d8121c166fb53a63451
d4e5de1ae02f6b47eb088531d3d4d047b4db6cfa
135a67a692bedb952ea720351026247104da8645
d7c2e2db28eb7e8f2ed7467fa2f2c59026b206d1
afcf905cff7971324c2706600ead35a1f41f417a
b8a0d75ef85b8f24c92a6c50817fa9579b4a98d9
f264d51d8ad939d7fb339d61a8cf680ed0cb21a2

virtio-pci devices work after backporting these, but we get

"...unable to init msix vectors to ..."

warnings for each pci device. See this[*] thread for a discussion about that. The warnings aren't a long term problem for us though, because we also want MSI support (bug 1231929), with which they'll go away.

[*] https://lists.gnu.org/archive/html/qemu-devel/2015-05/msg03792.html

Comment 2 Andrew Jones 2015-06-16 11:27:21 UTC
Example command line to test with

/usr/libexec/qemu-kvm -nographic -machine virt,accel=kvm -cpu host \
-m 4096 -smp 4 -usb \
-bios /usr/share/AAVMF/AAVMF_CODE.fd \
-device virtio-scsi-pci,id=scsi0 \
-drive file=$IMGDIR/$IMG.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2 \
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 \
-netdev user,id=hostnet0 \
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:d4:64:c8 \
-kernel $IMGDIR/vmlinuz-4.1.0-0.rc7.10.el7.aarch64 \
-initrd $IMGDIR/initramfs-4.1.0-0.rc7.10.el7.aarch64.virtio-pci.img \
-append '/vmlinuz root=/dev/mapper/rhelsfa-root ro rd.lvm.lv=rhelsfa/root rd.lvm.lv=rhelsfa/swap LANG=en_US.UTF-8'

Note that the initrd was modified to have the virtio_pci module added to it.
cp /boot/initramfs-4.1.0-0.rc7.10.el7.aarch64.img $IMGDIR/initramfs-4.1.0-0.rc7.10.el7.aarch64.virtio-pci.img
dracut --force --add-drivers virtio_pci $IMGDIR/initramfs-4.1.0-0.rc7.10.el7.aarch64.virtio-pci.img

Comment 4 Miroslav Rezanina 2015-07-02 19:32:28 UTC
Fix included in qemu-kvm-rhev-2.3.0-7.el7

Comment 7 juzhang 2015-09-09 09:00:19 UTC
Hi mrezanin,

Could you reply comment6?

Best Regards,
Junyi

Comment 10 Andrew Jones 2019-06-28 11:54:13 UTC
Virt for RHEL-7 AArch64 doesn't have QA. All ON_QA RHEL-7 AArch64 Virt bugs should now be closed.