1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
debug: 0.953
graphic: 0.860
device: 0.812
hypervisor: 0.752
performance: 0.751
register: 0.704
PID: 0.685
ppc: 0.663
x86: 0.659
kernel: 0.655
peripherals: 0.630
virtual: 0.627
VMM: 0.568
arm: 0.565
network: 0.557
socket: 0.541
KVM: 0.537
risc-v: 0.531
semantic: 0.489
files: 0.472
vnc: 0.461
architecture: 0.446
mistranslation: 0.435
i386: 0.433
user-level: 0.422
TCG: 0.357
assembly: 0.308
boot: 0.290
permissions: 0.177
Migration from v8.0.0-rc2 to v7.2.0 with pcie-root-port device fails
Description of problem:
Loading the VM state fails with:
```
qemu-system-x86_64: get_pci_config_device: Bad config data: i=0x10a read: 40 device: 0 cmask: ff wmask: 0 w1cmask:0
qemu-system-x86_64: Failed to load PCIDevice:config
qemu-system-x86_64: Failed to load pcie-root-port:parent_obj.parent_obj.parent_obj
qemu-system-x86_64: error while loading state for instance 0x0 of device '0000:00:1c.0/pcie-root-port'
qemu-system-x86_64: Error -22 while loading VM state
```
Steps to reproduce:
Used the following script with the first argument being a build directory of v8.0.0-rc2 and the second a build directory of v7.2.0
```
#!/bin/bash
rm /tmp/disk.qcow2
args="
-device pcie-root-port,multifunction=on,bus=pcie.0,addr=1c.0,port=1,chassis=1
-machine type=pc-q35-7.2"
$1/qemu-img create -f qcow2 /tmp/disk.qcow2 1G
$1/qemu-system-x86_64 --qmp stdio --blockdev qcow2,node-name=node0,file.driver=file,file.filename=/tmp/disk.qcow2 $args <<EOF
{"execute": "qmp_capabilities"}
{"execute": "snapshot-save", "arguments": { "job-id": "save0", "tag": "snap", "vmstate": "node0", "devices": ["node0"] } }
{"execute": "quit"}
EOF
$2/qemu-system-x86_64 --qmp stdio --blockdev qcow2,node-name=node0,file.driver=file,file.filename=/tmp/disk.qcow2 $args -loadvm snap
```
Additional information:
Bisecting shows that 010746ae1d ("hw/pci/aer: Implement PCI_ERR_UNCOR_MASK register") is the first bad commit.
|