All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
@ 2017-10-06 14:33 Ian Jackson
  2017-10-06 14:51 ` Wei Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Jackson @ 2017-10-06 14:33 UTC (permalink / raw)
  To: xen-devel; +Cc: Ross Lagerwall, Paul Durrant, Ian Jackson, Wei Liu

[ 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 <Ian.Jackson@eu.citrix.com>
Reported-by: Ross Lagerwall <ross.lagerwall@citrix.com>
CC: Ross Lagerwall <ross.lagerwall@citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Paul Durrant <Paul.Durrant@citrix.com>
---
 docs/man/xl.cfg.pod.5.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
index 8446d43..46b5ae6 100644
--- a/docs/man/xl.cfg.pod.5.in
+++ b/docs/man/xl.cfg.pod.5.in
@@ -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
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 14:33 [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop Ian Jackson
@ 2017-10-06 14:51 ` Wei Liu
  2017-10-06 14:54   ` Ross Lagerwall
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Wei Liu @ 2017-10-06 14:51 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Ross Lagerwall, xen-devel, Wei Liu, Paul Durrant

On Fri, Oct 06, 2017 at 03:33:52PM +0100, Ian Jackson wrote:
> [ 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 <Ian.Jackson@eu.citrix.com>
> Reported-by: Ross Lagerwall <ross.lagerwall@citrix.com>
> CC: Ross Lagerwall <ross.lagerwall@citrix.com>
> CC: Wei Liu <wei.liu2@citrix.com>
> CC: Paul Durrant <Paul.Durrant@citrix.com>
> ---
>  docs/man/xl.cfg.pod.5.in | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
> index 8446d43..46b5ae6 100644
> --- a/docs/man/xl.cfg.pod.5.in
> +++ b/docs/man/xl.cfg.pod.5.in
> @@ -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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 14:51 ` Wei Liu
@ 2017-10-06 14:54   ` Ross Lagerwall
  2017-10-06 14:54   ` Paul Durrant
  2017-10-06 14:57   ` Ian Jackson
  2 siblings, 0 replies; 8+ messages in thread
From: Ross Lagerwall @ 2017-10-06 14:54 UTC (permalink / raw)
  To: Wei Liu, Ian Jackson; +Cc: xen-devel, Paul Durrant

On 10/06/2017 03:51 PM, Wei Liu wrote:
> On Fri, Oct 06, 2017 at 03:33:52PM +0100, Ian Jackson wrote:
>> [ 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 <Ian.Jackson@eu.citrix.com>
>> Reported-by: Ross Lagerwall <ross.lagerwall@citrix.com>
>> CC: Ross Lagerwall <ross.lagerwall@citrix.com>
>> CC: Wei Liu <wei.liu2@citrix.com>
>> CC: Paul Durrant <Paul.Durrant@citrix.com>
>> ---
>>   docs/man/xl.cfg.pod.5.in | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
>> index 8446d43..46b5ae6 100644
>> --- a/docs/man/xl.cfg.pod.5.in
>> +++ b/docs/man/xl.cfg.pod.5.in
>> @@ -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?
> 

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.

-- 
Ross Lagerwall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 14:51 ` Wei Liu
  2017-10-06 14:54   ` Ross Lagerwall
@ 2017-10-06 14:54   ` Paul Durrant
  2017-10-06 15:01     ` Ian Jackson
  2017-10-06 14:57   ` Ian Jackson
  2 siblings, 1 reply; 8+ messages in thread
From: Paul Durrant @ 2017-10-06 14:54 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Ross Lagerwall, xen-devel, Wei Liu

> -----Original Message-----
> From: Wei Liu [mailto:wei.liu2@citrix.com]
> Sent: 06 October 2017 15:51
> To: Ian Jackson <Ian.Jackson@citrix.com>
> Cc: xen-devel@lists.xensource.com; Ross Lagerwall
> <ross.lagerwall@citrix.com>; Wei Liu <wei.liu2@citrix.com>; Paul Durrant
> <Paul.Durrant@citrix.com>
> Subject: Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack
> of physmap dmop
> 
> On Fri, Oct 06, 2017 at 03:33:52PM +0100, Ian Jackson wrote:
> > [ 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 <Ian.Jackson@eu.citrix.com>
> > Reported-by: Ross Lagerwall <ross.lagerwall@citrix.com>
> > CC: Ross Lagerwall <ross.lagerwall@citrix.com>
> > CC: Wei Liu <wei.liu2@citrix.com>
> > CC: Paul Durrant <Paul.Durrant@citrix.com>
> > ---
> >  docs/man/xl.cfg.pod.5.in | 6 ++++++
> >  1 file changed, 6 insertions(+)
> >
> > diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
> > index 8446d43..46b5ae6 100644
> > --- a/docs/man/xl.cfg.pod.5.in
> > +++ b/docs/man/xl.cfg.pod.5.in
> > @@ -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?

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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 14:51 ` Wei Liu
  2017-10-06 14:54   ` Ross Lagerwall
  2017-10-06 14:54   ` Paul Durrant
@ 2017-10-06 14:57   ` Ian Jackson
  2017-10-06 14:58     ` Wei Liu
  2 siblings, 1 reply; 8+ messages in thread
From: Ian Jackson @ 2017-10-06 14:57 UTC (permalink / raw)
  To: Wei Liu; +Cc: Ross Lagerwall, xen-devel, Paul Durrant

Wei Liu writes ("Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):
> On Fri, Oct 06, 2017 at 03:33:52PM +0100, Ian Jackson wrote:
> > [ extra patch, following test report from Ross ]
...
> > +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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 14:57   ` Ian Jackson
@ 2017-10-06 14:58     ` Wei Liu
  0 siblings, 0 replies; 8+ messages in thread
From: Wei Liu @ 2017-10-06 14:58 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Ross Lagerwall, xen-devel, Wei Liu, Paul Durrant

On Fri, Oct 06, 2017 at 03:57:09PM +0100, Ian Jackson wrote:
> Wei Liu writes ("Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):
> > On Fri, Oct 06, 2017 at 03:33:52PM +0100, Ian Jackson wrote:
> > > [ extra patch, following test report from Ross ]
> ...
> > > +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...
> 

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 14:54   ` Paul Durrant
@ 2017-10-06 15:01     ` Ian Jackson
  2017-10-06 16:35       ` Paul Durrant
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Jackson @ 2017-10-06 15:01 UTC (permalink / raw)
  To: Paul Durrant; +Cc: Ross Lagerwall, xen-devel, Wei Liu

Paul Durrant writes ("RE: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop"):
> 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop
  2017-10-06 15:01     ` Ian Jackson
@ 2017-10-06 16:35       ` Paul Durrant
  0 siblings, 0 replies; 8+ messages in thread
From: Paul Durrant @ 2017-10-06 16:35 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Ross Lagerwall, xen-devel, Wei Liu

> -----Original Message-----
> From: Ian Jackson [mailto:ian.jackson@eu.citrix.com]
> Sent: 06 October 2017 16:02
> To: Paul Durrant <Paul.Durrant@citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>; xen-devel@lists.xensource.com; Ross
> Lagerwall <ross.lagerwall@citrix.com>
> Subject: RE: [PATCH v2 25/24] xl: Document VGA problems arising from lack
> of physmap dmop
> 
> Paul Durrant writes ("RE: [PATCH v2 25/24] xl: Document VGA problems
> arising from lack of physmap dmop"):
> > 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

> Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-06 16:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-06 14:33 [PATCH v2 25/24] xl: Document VGA problems arising from lack of physmap dmop Ian Jackson
2017-10-06 14:51 ` Wei Liu
2017-10-06 14:54   ` Ross Lagerwall
2017-10-06 14:54   ` Paul Durrant
2017-10-06 15:01     ` Ian Jackson
2017-10-06 16:35       ` Paul Durrant
2017-10-06 14:57   ` Ian Jackson
2017-10-06 14:58     ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.