[Bug 1879175] Re: GVTd not working (black screen) after upgrade to qemu-5.0.0

2020-06-09 Thread Thomas Huth
*** This bug is a duplicate of bug 1882784 ***
https://bugs.launchpad.net/bugs/1882784

** This bug has been marked a duplicate of bug 1882784
   Legacy IGD passthrough in QEMU 5 disabled

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1879175

Title:
  GVTd not working (black screen) after upgrade to qemu-5.0.0

Status in QEMU:
  New

Bug description:
  Hi QEMU team,

  
  === Problem Summary ===

  I have recently upgraded from QEMU-3.1.0 to to QEMU-5.0.0 on Debian
  Unstable. Unfortunately GVTd (legacy passthrough of the integrated
  intel gpu) stopped working correctly. The guest can still see and
  loads the driver for the GPU, but the screen stays black.

  The following is the version used:

  $ /usr/bin/qemu-system-x86_64 --version
  QEMU emulator version 5.0.0 (Debian 1:5.0-5)
  Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers


  === Investigation/Triage done so far ===

  Running QEMU with trace flags enabled shows the following behavior
  change for the same VM (left: 3.1.0, right: 5.0.0):

  vfio_realize  (:00:02.0) group 1  
  vfio_realize  (:00:02.0) group 1
  vfio_listener_region_add_ram region_add [ram] 0x0 - 0xb [0x7f5b41e0]  
 |vfio_listener_region_add_ram region_add [ram] 0x0 - 
0xb [0x7f2bb1e0]
  vfio_listener_region_add_ram region_add [ram] 0xc - 0xd 
[0x7f5d1d40]   |vfio_listener_region_add_ram region_add 
[ram] 0xc - 0xd [0x7f2d7c80]
  vfio_listener_region_add_ram region_add [ram] 0xe - 0xf 
[0x7f5d1d62]   |vfio_listener_region_add_ram region_add 
[ram] 0xe - 0xf [0x7f2d8422]
  vfio_listener_region_add_ram region_add [ram] 0x10 - 0xbfff 
[0x7f5b41f0]   |vfio_listener_region_add_ram region_add 
[ram] 0x10 - 0xbfff [0x7f2bb1f0]
  vfio_listener_region_add_skip SKIPPING region_add 0xfec0 - 0xfec00fff 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfec0 - 0xfec00fff
  vfio_listener_region_add_skip SKIPPING region_add 0xfee0 - 0xfeef 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfee0 - 0xfeef
  vfio_listener_region_add_ram region_add [ram] 0xfffc - 0x 
[0x7f5d1d60] |vfio_listener_region_add_ram region_add [ram] 
0xfffc - 0x [0x7f2d8420]
  vfio_listener_region_add_ram region_add [ram] 0x1 - 0x201ff 
[0x7f5c01e0]   |vfio_listener_region_add_ram region_add [ram] 
0x1 - 0x201ff [0x7f2c71e0]
  vfio_mdev  (:00:02.0) is_mdev 0   
  vfio_mdev  (:00:02.0) is_mdev 0
  vfio_get_device Device :00:02.0 flags: 3, regions: 12, irqs: 5
  vfio_get_device Device :00:02.0 flags: 3, 
regions: 12, irqs: 5
  vfio_region_setup Device :00:02.0, region 0 ":00:02.0 BAR 0", flags: 
0x7, offset: 0x0, svfio_region_setup Device :00:02.0, region 0 
":00:02.0 BAR 0", flags: 0x7, offset: 0x0, s
  vfio_region_setup Device :00:02.0, region 1 ":00:02.0 BAR 1", flags: 
0x0, offset: 0x1000vfio_region_setup Device :00:02.0, region 1 
":00:02.0 BAR 1", flags: 0x0, offset: 0x1000
  vfio_region_setup Device :00:02.0, region 2 ":00:02.0 BAR 2", flags: 
0x7, offset: 0x2000vfio_region_setup Device :00:02.0, region 2 
":00:02.0 BAR 2", flags: 0x7, offset: 0x2000
  vfio_region_setup Device :00:02.0, region 3 ":00:02.0 BAR 3", flags: 
0x0, offset: 0x3000vfio_region_setup Device :00:02.0, region 3 
":00:02.0 BAR 3", flags: 0x0, offset: 0x3000
  vfio_region_setup Device :00:02.0, region 4 ":00:02.0 BAR 4", flags: 
0x3, offset: 0x4000vfio_region_setup Device :00:02.0, region 4 
":00:02.0 BAR 4", flags: 0x3, offset: 0x4000
  vfio_region_setup Device :00:02.0, region 5 ":00:02.0 BAR 5", flags: 
0x0, offset: 0x5000vfio_region_setup Device :00:02.0, region 5 
":00:02.0 BAR 5", flags: 0x0, offset: 0x5000
  vfio_populate_device_config Device :00:02.0 config:   
  vfio_populate_device_config Device :00:02.0 
config:
   0x1000, offset: 0x700, flags: 0x3
   0x1000, offset: 0x700, flags: 0x3
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] [0x0 - 0xff]  
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] 
[0x0 - 0xff]
  vfio_region_mmap Region :00:02.0 BAR 2 mmaps[0] [0x0 - 0xfff] 
  vfio_region_mmap Region :00:02.0 BAR 2 mmaps[0] 

[Bug 1879175] Re: GVTd not working (black screen) after upgrade to qemu-5.0.0

2020-06-09 Thread TheCatFelix
No problem, thanks for getting the issue resolved!

As a note, i've been going by this guide here from Intel. They seem to
describe as that GVT-d refers to the concept of attaching a "whole" GPU
to a single VM through PCI PT and it has two modes of operation,
"Legacy" and "UPT".

https://github.com/intel/gvt-linux/wiki/GVTd_Setup_Guide#561-create-
gvt-d-kvm-vm

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1879175

Title:
  GVTd not working (black screen) after upgrade to qemu-5.0.0

Status in QEMU:
  New

Bug description:
  Hi QEMU team,

  
  === Problem Summary ===

  I have recently upgraded from QEMU-3.1.0 to to QEMU-5.0.0 on Debian
  Unstable. Unfortunately GVTd (legacy passthrough of the integrated
  intel gpu) stopped working correctly. The guest can still see and
  loads the driver for the GPU, but the screen stays black.

  The following is the version used:

  $ /usr/bin/qemu-system-x86_64 --version
  QEMU emulator version 5.0.0 (Debian 1:5.0-5)
  Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers


  === Investigation/Triage done so far ===

  Running QEMU with trace flags enabled shows the following behavior
  change for the same VM (left: 3.1.0, right: 5.0.0):

  vfio_realize  (:00:02.0) group 1  
  vfio_realize  (:00:02.0) group 1
  vfio_listener_region_add_ram region_add [ram] 0x0 - 0xb [0x7f5b41e0]  
 |vfio_listener_region_add_ram region_add [ram] 0x0 - 
0xb [0x7f2bb1e0]
  vfio_listener_region_add_ram region_add [ram] 0xc - 0xd 
[0x7f5d1d40]   |vfio_listener_region_add_ram region_add 
[ram] 0xc - 0xd [0x7f2d7c80]
  vfio_listener_region_add_ram region_add [ram] 0xe - 0xf 
[0x7f5d1d62]   |vfio_listener_region_add_ram region_add 
[ram] 0xe - 0xf [0x7f2d8422]
  vfio_listener_region_add_ram region_add [ram] 0x10 - 0xbfff 
[0x7f5b41f0]   |vfio_listener_region_add_ram region_add 
[ram] 0x10 - 0xbfff [0x7f2bb1f0]
  vfio_listener_region_add_skip SKIPPING region_add 0xfec0 - 0xfec00fff 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfec0 - 0xfec00fff
  vfio_listener_region_add_skip SKIPPING region_add 0xfee0 - 0xfeef 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfee0 - 0xfeef
  vfio_listener_region_add_ram region_add [ram] 0xfffc - 0x 
[0x7f5d1d60] |vfio_listener_region_add_ram region_add [ram] 
0xfffc - 0x [0x7f2d8420]
  vfio_listener_region_add_ram region_add [ram] 0x1 - 0x201ff 
[0x7f5c01e0]   |vfio_listener_region_add_ram region_add [ram] 
0x1 - 0x201ff [0x7f2c71e0]
  vfio_mdev  (:00:02.0) is_mdev 0   
  vfio_mdev  (:00:02.0) is_mdev 0
  vfio_get_device Device :00:02.0 flags: 3, regions: 12, irqs: 5
  vfio_get_device Device :00:02.0 flags: 3, 
regions: 12, irqs: 5
  vfio_region_setup Device :00:02.0, region 0 ":00:02.0 BAR 0", flags: 
0x7, offset: 0x0, svfio_region_setup Device :00:02.0, region 0 
":00:02.0 BAR 0", flags: 0x7, offset: 0x0, s
  vfio_region_setup Device :00:02.0, region 1 ":00:02.0 BAR 1", flags: 
0x0, offset: 0x1000vfio_region_setup Device :00:02.0, region 1 
":00:02.0 BAR 1", flags: 0x0, offset: 0x1000
  vfio_region_setup Device :00:02.0, region 2 ":00:02.0 BAR 2", flags: 
0x7, offset: 0x2000vfio_region_setup Device :00:02.0, region 2 
":00:02.0 BAR 2", flags: 0x7, offset: 0x2000
  vfio_region_setup Device :00:02.0, region 3 ":00:02.0 BAR 3", flags: 
0x0, offset: 0x3000vfio_region_setup Device :00:02.0, region 3 
":00:02.0 BAR 3", flags: 0x0, offset: 0x3000
  vfio_region_setup Device :00:02.0, region 4 ":00:02.0 BAR 4", flags: 
0x3, offset: 0x4000vfio_region_setup Device :00:02.0, region 4 
":00:02.0 BAR 4", flags: 0x3, offset: 0x4000
  vfio_region_setup Device :00:02.0, region 5 ":00:02.0 BAR 5", flags: 
0x0, offset: 0x5000vfio_region_setup Device :00:02.0, region 5 
":00:02.0 BAR 5", flags: 0x0, offset: 0x5000
  vfio_populate_device_config Device :00:02.0 config:   
  vfio_populate_device_config Device :00:02.0 
config:
   0x1000, offset: 0x700, flags: 0x3
   0x1000, offset: 0x700, flags: 0x3
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] [0x0 - 0xff]  
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] 
[0x0 - 

[Bug 1879175] Re: GVTd not working (black screen) after upgrade to qemu-5.0.0

2020-06-09 Thread Shak
I've also posted the bug and fix here:

https://bugs.launchpad.net/qemu/+bug/1882784

I may be wrong but Legacy IGD assignment doesn't use GVT-g or GVT-d,
which is why I missed this ticket when reporting my own.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1879175

Title:
  GVTd not working (black screen) after upgrade to qemu-5.0.0

Status in QEMU:
  New

Bug description:
  Hi QEMU team,

  
  === Problem Summary ===

  I have recently upgraded from QEMU-3.1.0 to to QEMU-5.0.0 on Debian
  Unstable. Unfortunately GVTd (legacy passthrough of the integrated
  intel gpu) stopped working correctly. The guest can still see and
  loads the driver for the GPU, but the screen stays black.

  The following is the version used:

  $ /usr/bin/qemu-system-x86_64 --version
  QEMU emulator version 5.0.0 (Debian 1:5.0-5)
  Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers


  === Investigation/Triage done so far ===

  Running QEMU with trace flags enabled shows the following behavior
  change for the same VM (left: 3.1.0, right: 5.0.0):

  vfio_realize  (:00:02.0) group 1  
  vfio_realize  (:00:02.0) group 1
  vfio_listener_region_add_ram region_add [ram] 0x0 - 0xb [0x7f5b41e0]  
 |vfio_listener_region_add_ram region_add [ram] 0x0 - 
0xb [0x7f2bb1e0]
  vfio_listener_region_add_ram region_add [ram] 0xc - 0xd 
[0x7f5d1d40]   |vfio_listener_region_add_ram region_add 
[ram] 0xc - 0xd [0x7f2d7c80]
  vfio_listener_region_add_ram region_add [ram] 0xe - 0xf 
[0x7f5d1d62]   |vfio_listener_region_add_ram region_add 
[ram] 0xe - 0xf [0x7f2d8422]
  vfio_listener_region_add_ram region_add [ram] 0x10 - 0xbfff 
[0x7f5b41f0]   |vfio_listener_region_add_ram region_add 
[ram] 0x10 - 0xbfff [0x7f2bb1f0]
  vfio_listener_region_add_skip SKIPPING region_add 0xfec0 - 0xfec00fff 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfec0 - 0xfec00fff
  vfio_listener_region_add_skip SKIPPING region_add 0xfee0 - 0xfeef 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfee0 - 0xfeef
  vfio_listener_region_add_ram region_add [ram] 0xfffc - 0x 
[0x7f5d1d60] |vfio_listener_region_add_ram region_add [ram] 
0xfffc - 0x [0x7f2d8420]
  vfio_listener_region_add_ram region_add [ram] 0x1 - 0x201ff 
[0x7f5c01e0]   |vfio_listener_region_add_ram region_add [ram] 
0x1 - 0x201ff [0x7f2c71e0]
  vfio_mdev  (:00:02.0) is_mdev 0   
  vfio_mdev  (:00:02.0) is_mdev 0
  vfio_get_device Device :00:02.0 flags: 3, regions: 12, irqs: 5
  vfio_get_device Device :00:02.0 flags: 3, 
regions: 12, irqs: 5
  vfio_region_setup Device :00:02.0, region 0 ":00:02.0 BAR 0", flags: 
0x7, offset: 0x0, svfio_region_setup Device :00:02.0, region 0 
":00:02.0 BAR 0", flags: 0x7, offset: 0x0, s
  vfio_region_setup Device :00:02.0, region 1 ":00:02.0 BAR 1", flags: 
0x0, offset: 0x1000vfio_region_setup Device :00:02.0, region 1 
":00:02.0 BAR 1", flags: 0x0, offset: 0x1000
  vfio_region_setup Device :00:02.0, region 2 ":00:02.0 BAR 2", flags: 
0x7, offset: 0x2000vfio_region_setup Device :00:02.0, region 2 
":00:02.0 BAR 2", flags: 0x7, offset: 0x2000
  vfio_region_setup Device :00:02.0, region 3 ":00:02.0 BAR 3", flags: 
0x0, offset: 0x3000vfio_region_setup Device :00:02.0, region 3 
":00:02.0 BAR 3", flags: 0x0, offset: 0x3000
  vfio_region_setup Device :00:02.0, region 4 ":00:02.0 BAR 4", flags: 
0x3, offset: 0x4000vfio_region_setup Device :00:02.0, region 4 
":00:02.0 BAR 4", flags: 0x3, offset: 0x4000
  vfio_region_setup Device :00:02.0, region 5 ":00:02.0 BAR 5", flags: 
0x0, offset: 0x5000vfio_region_setup Device :00:02.0, region 5 
":00:02.0 BAR 5", flags: 0x0, offset: 0x5000
  vfio_populate_device_config Device :00:02.0 config:   
  vfio_populate_device_config Device :00:02.0 
config:
   0x1000, offset: 0x700, flags: 0x3
   0x1000, offset: 0x700, flags: 0x3
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] [0x0 - 0xff]  
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] 
[0x0 - 0xff]
  vfio_region_mmap Region :00:02.0 BAR 2 mmaps[0] [0x0 - 0xfff] 
  vfio_region_mmap Region 

[Bug 1879175] Re: GVTd not working (black screen) after upgrade to qemu-5.0.0

2020-05-17 Thread TheCatFelix
** Summary changed:

- GVTd not working after upgrade to qemu-5.0.0
+ GVTd not working (black screen) after upgrade to qemu-5.0.0

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1879175

Title:
  GVTd not working (black screen) after upgrade to qemu-5.0.0

Status in QEMU:
  New

Bug description:
  Hi QEMU team,

  
  === Problem Summary ===

  I have recently upgraded from QEMU-3.1.0 to to QEMU-5.0.0 on Debian
  Unstable. Unfortunately GVTd (legacy passthrough of the integrated
  intel gpu) stopped working correctly. The guest can still see and
  loads the driver for the GPU, but the screen stays black.

  The following is the version used:

  $ /usr/bin/qemu-system-x86_64 --version
  QEMU emulator version 5.0.0 (Debian 1:5.0-5)
  Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers


  === Investigation/Triage done so far ===

  Running QEMU with trace flags enabled shows the following behavior
  change for the same VM (left: 3.1.0, right: 5.0.0):

  vfio_realize  (:00:02.0) group 1  
  vfio_realize  (:00:02.0) group 1
  vfio_listener_region_add_ram region_add [ram] 0x0 - 0xb [0x7f5b41e0]  
 |vfio_listener_region_add_ram region_add [ram] 0x0 - 
0xb [0x7f2bb1e0]
  vfio_listener_region_add_ram region_add [ram] 0xc - 0xd 
[0x7f5d1d40]   |vfio_listener_region_add_ram region_add 
[ram] 0xc - 0xd [0x7f2d7c80]
  vfio_listener_region_add_ram region_add [ram] 0xe - 0xf 
[0x7f5d1d62]   |vfio_listener_region_add_ram region_add 
[ram] 0xe - 0xf [0x7f2d8422]
  vfio_listener_region_add_ram region_add [ram] 0x10 - 0xbfff 
[0x7f5b41f0]   |vfio_listener_region_add_ram region_add 
[ram] 0x10 - 0xbfff [0x7f2bb1f0]
  vfio_listener_region_add_skip SKIPPING region_add 0xfec0 - 0xfec00fff 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfec0 - 0xfec00fff
  vfio_listener_region_add_skip SKIPPING region_add 0xfee0 - 0xfeef 
  vfio_listener_region_add_skip SKIPPING region_add 
0xfee0 - 0xfeef
  vfio_listener_region_add_ram region_add [ram] 0xfffc - 0x 
[0x7f5d1d60] |vfio_listener_region_add_ram region_add [ram] 
0xfffc - 0x [0x7f2d8420]
  vfio_listener_region_add_ram region_add [ram] 0x1 - 0x201ff 
[0x7f5c01e0]   |vfio_listener_region_add_ram region_add [ram] 
0x1 - 0x201ff [0x7f2c71e0]
  vfio_mdev  (:00:02.0) is_mdev 0   
  vfio_mdev  (:00:02.0) is_mdev 0
  vfio_get_device Device :00:02.0 flags: 3, regions: 12, irqs: 5
  vfio_get_device Device :00:02.0 flags: 3, 
regions: 12, irqs: 5
  vfio_region_setup Device :00:02.0, region 0 ":00:02.0 BAR 0", flags: 
0x7, offset: 0x0, svfio_region_setup Device :00:02.0, region 0 
":00:02.0 BAR 0", flags: 0x7, offset: 0x0, s
  vfio_region_setup Device :00:02.0, region 1 ":00:02.0 BAR 1", flags: 
0x0, offset: 0x1000vfio_region_setup Device :00:02.0, region 1 
":00:02.0 BAR 1", flags: 0x0, offset: 0x1000
  vfio_region_setup Device :00:02.0, region 2 ":00:02.0 BAR 2", flags: 
0x7, offset: 0x2000vfio_region_setup Device :00:02.0, region 2 
":00:02.0 BAR 2", flags: 0x7, offset: 0x2000
  vfio_region_setup Device :00:02.0, region 3 ":00:02.0 BAR 3", flags: 
0x0, offset: 0x3000vfio_region_setup Device :00:02.0, region 3 
":00:02.0 BAR 3", flags: 0x0, offset: 0x3000
  vfio_region_setup Device :00:02.0, region 4 ":00:02.0 BAR 4", flags: 
0x3, offset: 0x4000vfio_region_setup Device :00:02.0, region 4 
":00:02.0 BAR 4", flags: 0x3, offset: 0x4000
  vfio_region_setup Device :00:02.0, region 5 ":00:02.0 BAR 5", flags: 
0x0, offset: 0x5000vfio_region_setup Device :00:02.0, region 5 
":00:02.0 BAR 5", flags: 0x0, offset: 0x5000
  vfio_populate_device_config Device :00:02.0 config:   
  vfio_populate_device_config Device :00:02.0 
config:
   0x1000, offset: 0x700, flags: 0x3
   0x1000, offset: 0x700, flags: 0x3
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] [0x0 - 0xff]  
  vfio_region_mmap Region :00:02.0 BAR 0 mmaps[0] 
[0x0 - 0xff]
  vfio_region_mmap Region :00:02.0 BAR 2 mmaps[0] [0x0 - 0xfff] 
  vfio_region_mmap Region :00:02.0 BAR 2 mmaps[0] 
[0x0 - 0xfff]
  vfio_check_pm_reset :00:02.0 Supports