Skip to contentSkip to conversation

xl: Document VGA problems arising from lack of physmap dmop

PATCH Ian Jackson 4 participants 8 messages Oct 6, 2017

lore
Share & tools
lore
#0 lore raw

[ extra patch, following test report from Ross ]

Ross reports that stdvga guests do not work, and cirrus guests are slow, because qemu tries to do xc_domain_add_to_physmap. We will need another dmop to fix this properly.

For now, document the problem.

---
 docs/man/xl.cfg.pod.5.in | 6 ++++++
 1 file changed, 6 insertions(+)
docs/man/xl.cfg.pod.5.in +6 -0
index 8446d43..46b5ae6 100644
@@ -2239,6 +2239,12 @@ For example, cdrom insert will fail.
 
 =item
 
+Domains with stdvga graphics cards to not work.
+Domains with cirrus vga do work,
+but there are performance problems with the vga console.
+
+=item
+
 You must create user(s) for qemu to run as.
 
 Ideally, set aside a range of 32752 uids
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 22 lines · Ian Jackson

[ extra patch, following test report from Ross ]

Ross reports that stdvga guests do not work, and cirrus guests are slow, because qemu tries to do xc_domain_add_to_physmap. We will need another dmop to fix this properly.

For now, document the problem.

---
 docs/man/xl.cfg.pod.5.in | 6 ++++++
 1 file changed, 6 insertions(+)
docs/man/xl.cfg.pod.5.in +0 -0
index 8446d43..46b5ae6 100644

docs/man/xl.cfg.pod.5.in For example, cdrom insert will fail. · line 2245

Quoted 7 lines
docs/man/xl.cfg.pod.5.in +4 -0
@@ -2239,6 +2239,12 @@ For example, cdrom insert will fail.
 
 =item
 
+Domains with stdvga graphics cards to not work.
+Domains with cirrus vga do work,
+but there are performance problems with the vga console.
+

I don't follow. Do you imply cirrus doesn't need add_to_physmap to function?

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 26 lines · Wei Liu
Quoted 25 lines · Ian Jackson

[ extra patch, following test report from Ross ]

Ross reports that stdvga guests do not work, and cirrus guests are slow, because qemu tries to do xc_domain_add_to_physmap. We will need another dmop to fix this properly.

For now, document the problem.

---
  docs/man/xl.cfg.pod.5.in | 6 ++++++
  1 file changed, 6 insertions(+)
docs/man/xl.cfg.pod.5.in +0 -0
index 8446d43..46b5ae6 100644
@@ -2239,6 +2239,12 @@ For example, cdrom insert will fail.
 
  =item
 
Quoted 8 lines

docs/man/xl.cfg.pod.5.in For example, cdrom insert will fail. · line 2245

Quoted 4 lines
docs/man/xl.cfg.pod.5.in +4 -0
+Domains with stdvga graphics cards to not work.
+Domains with cirrus vga do work,
+but there are performance problems with the vga console.
+

I don't follow. Do you imply cirrus doesn't need add_to_physmap to function?

For both stdvga and cirrus, the function gets called and fails (although QEMU doesn't log an error by default). With stdvga the VM wedged. With cirrus, the VM worked but the display performance seemed worse than normal.

Signature · 6 lines
Ross Lagerwall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw
In reply to Wei Liu
Quoted 37 lines

-----Original Message-----
From: Wei Liu [mailto:[email protected]]
Sent: 06 October 2017 15:51
To: Ian Jackson <[email protected]>
Cc: [email protected]; Ross Lagerwall <[email protected]>; Wei Liu <[email protected]>; Paul Durrant <[email protected]>
Subject: Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop

Quoted 4 lines · Ian Jackson

[ extra patch, following test report from Ross ]

Ross reports that stdvga guests do not work, and cirrus guests are slow, because qemu tries to do xc_domain_add_to_physmap. We will

need

Quoted 21 lines

another dmop to fix this properly.

For now, document the problem.

---
 docs/man/xl.cfg.pod.5.in | 6 ++++++
 1 file changed, 6 insertions(+)
docs/man/xl.cfg.pod.5.in +0 -0
index 8446d43..46b5ae6 100644
@@ -2239,6 +2239,12 @@ For example, cdrom insert will fail.
 
 =item
 
Quoted 7 lines

docs/man/xl.cfg.pod.5.in For example, cdrom insert will fail. · line 2245

Quoted 4 lines
docs/man/xl.cfg.pod.5.in +4 -0
+Domains with stdvga graphics cards to not work.
+Domains with cirrus vga do work,
+but there are performance problems with the vga console.
+

I don't follow. Do you imply cirrus doesn't need add_to_physmap to function?

I suspect what it happening is that the VRAM is not moved into the BAR, but the emulation in QEMU instead handles the BAR writes and then updates the VRAM in its current location.

Paul

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw

Paul Durrant writes ("RE: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):

Quoted 1 line

I suspect what it happening is that the VRAM is not moved into the BAR, but the emulation in QEMU instead handles the BAR writes and then updates the VRAM in its current location.

Is it going to be a problem that the vram is still mapped in its previous location ?

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#5 lore raw
Quoted 9 lines

-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 06 October 2017 16:02
To: Paul Durrant <[email protected]>
Cc: Wei Liu <[email protected]>; [email protected]; Ross Lagerwall <[email protected]>
Subject: RE: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop

Quoted 9 lines

Paul Durrant writes ("RE: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):

Quoted 1 line

I suspect what it happening is that the VRAM is not moved into the BAR,

but the emulation in QEMU instead handles the BAR writes and then updates the VRAM in its current location.

Is it going to be a problem that the vram is still mapped in its previous location ?

Unclear. I think it of those things where QEMU knows where it is but nothing else really does. With trad the VRAM was always just below the 4G boundary in guest space but this is not the case with upstream so I don't know what the risk of something else trying to put memory (or a hotplugged device) in the same space is.

Paul

Quoted 1 line

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#6 lore raw
In reply to Wei Liu

Wei Liu writes ("Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):

Quoted 2 lines · Ian Jackson
Quoted 1 line

[ extra patch, following test report from Ross ]

...

Quoted 7 lines

docs/man/xl.cfg.pod.5.in For example, cdrom insert will fail. · line 2245

Quoted 4 lines
docs/man/xl.cfg.pod.5.in +4 -0
+Domains with stdvga graphics cards to not work.
+Domains with cirrus vga do work,
+but there are performance problems with the vga console.
+

I don't follow. Do you imply cirrus doesn't need add_to_physmap to function?

Evidently not. My qemu-dm-debian.guest.osstest.log does not contain any of the errors Ross quotes and I can connect to my guest's VGA console over vnc.

It does take a little extra time to boot, I think. I didn't really notice this and thought it was a side effect of the happenstance that my guest had been converted from PV...

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#7 lore raw
Quoted 12 lines · Ian Jackson

Wei Liu writes ("Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):

Quoted 2 lines · Ian Jackson
Quoted 1 line

[ extra patch, following test report from Ross ]

...

Quoted 7 lines

docs/man/xl.cfg.pod.5.in For example, cdrom insert will fail. · line 2245

Quoted 4 lines
docs/man/xl.cfg.pod.5.in +4 -0
+Domains with stdvga graphics cards to not work.
+Domains with cirrus vga do work,
+but there are performance problems with the vga console.
+

I don't follow. Do you imply cirrus doesn't need add_to_physmap to function?

Quoted 8 lines

Evidently not. My qemu-dm-debian.guest.osstest.log does not contain any of the errors Ross quotes and I can connect to my guest's VGA console over vnc.

It does take a little extra time to boot, I think. I didn't really notice this and thought it was a side effect of the happenstance that my guest had been converted from PV...

Let's just say they don't work properly yet?

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel