xl: Document VGA problems arising from lack of physmap dmop
[ 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
@@ -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
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.
Signed-off-by Ian Jackson <[email protected]>Reported-by Ross Lagerwall <[email protected]>CC Ross Lagerwall <[email protected]>CC Wei Liu <[email protected]>CC Paul Durrant <[email protected]>--- docs/man/xl.cfg.pod.5.in | 6 ++++++ 1 file changed, 6 insertions(+)docs/man/xl.cfg.pod.5.in +0
-0
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
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.
Signed-off-by Ian Jackson <[email protected]>Reported-by Ross Lagerwall <[email protected]>CC Ross Lagerwall <[email protected]>CC Wei Liu <[email protected]>CC Paul Durrant <[email protected]>--- docs/man/xl.cfg.pod.5.in | 6 ++++++ 1 file changed, 6 insertions(+)docs/man/xl.cfg.pod.5.in +0
-0@@ -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_physmapto 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
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 dmopQuoted 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 willneed
Quoted 21 lines
another dmop to fix this properly.
For now, document the problem.
Signed-off-by Ian Jackson <[email protected]>Reported-by Ross Lagerwall <[email protected]>CC Ross Lagerwall <[email protected]>CC Wei Liu <[email protected]>CC Paul Durrant <[email protected]>--- docs/man/xl.cfg.pod.5.in | 6 ++++++ 1 file changed, 6 insertions(+)docs/man/xl.cfg.pod.5.in +0
-0@@ -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_physmapto 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
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
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
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_physmapto 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
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_physmapto 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