Re: [libvirt PATCH] libxl: vga.kind none when no device specified

2020-05-07 Thread Jim Fehlig

On 5/7/20 3:30 PM, Jim Fehlig wrote:

On 5/7/20 11:17 AM, Marek Marczykowski-Górecki wrote:

On Thu, May 07, 2020 at 09:52:44AM -0600, Jim Fehlig wrote:

On 5/7/20 5:12 AM, Marek Marczykowski-Górecki wrote:

On Thu, Apr 30, 2020 at 02:31:12PM +0200, Artur Puzio wrote:

When no video device is specified in config we should set both
hvm.nographic to 1 and hvm.vga.kind to NONE.

Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
-device 'cirrus-vga' are on qemu cmdline.


Ping?


I can't find the original mail. We are in the midst of many internal IT
changes so it is likely in a quarantine I have yet to discover.


I've found the original, along with the V2 sent today, in an O365 junkmail 
folder! I'll file a ticket with IT.

In this case, I'll point you also another patch sent the same day:
https://www.redhat.com/archives/libvir-list/2020-April/msg01480.html


I cannot find this mail :-(.


Found it!

Artur, can you resend the patch and include me in 
the To: list? Until I get the issue resolved, please do so in any future patches 
as well. Thanks!


Still keep this in mind for future patches until I get the issue resolved.

Regards,
Jim




Re: [libvirt PATCH] libxl: vga.kind none when no device specified

2020-05-07 Thread Jim Fehlig

On 5/7/20 11:17 AM, Marek Marczykowski-Górecki wrote:

On Thu, May 07, 2020 at 09:52:44AM -0600, Jim Fehlig wrote:

On 5/7/20 5:12 AM, Marek Marczykowski-Górecki wrote:

On Thu, Apr 30, 2020 at 02:31:12PM +0200, Artur Puzio wrote:

When no video device is specified in config we should set both
hvm.nographic to 1 and hvm.vga.kind to NONE.

Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
-device 'cirrus-vga' are on qemu cmdline.


Ping?


I can't find the original mail. We are in the midst of many internal IT
changes so it is likely in a quarantine I have yet to discover.


I've found the original, along with the V2 sent today, in an O365 junkmail 
folder! I'll file a ticket with IT.

In this case, I'll point you also another patch sent the same day:
https://www.redhat.com/archives/libvir-list/2020-April/msg01480.html


I cannot find this mail :-(. Artur, can you resend the patch and include me in 
the To: list? Until I get the issue resolved, please do so in any future patches 
as well. Thanks!


Regards,
Jim




Re: [libvirt PATCH] libxl: vga.kind none when no device specified

2020-05-07 Thread Marek Marczykowski-Górecki
On Thu, May 07, 2020 at 09:52:44AM -0600, Jim Fehlig wrote:
> On 5/7/20 5:12 AM, Marek Marczykowski-Górecki wrote:
> > On Thu, Apr 30, 2020 at 02:31:12PM +0200, Artur Puzio wrote:
> > > When no video device is specified in config we should set both
> > > hvm.nographic to 1 and hvm.vga.kind to NONE.
> > > 
> > > Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
> > > -device 'cirrus-vga' are on qemu cmdline.
> > 
> > Ping?
> 
> I can't find the original mail. We are in the midst of many internal IT
> changes so it is likely in a quarantine I have yet to discover.

In this case, I'll point you also another patch sent the same day:
https://www.redhat.com/archives/libvir-list/2020-April/msg01480.html

> > But also, Artur, you forgot to add Signed-off-by.
> 
> The patch looks good. Artur, can you send the patch again with a S-O-B?

He did that already:
https://www.redhat.com/archives/libvir-list/2020-May/msg00280.html


> 
> Regards,
> Jim
> 
> > 
> > > ---
> > >   src/libxl/libxl_conf.c   | 1 +
> > >   tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json | 3 +++
> > >   tests/libxlxml2domconfigdata/fullvirt-cpuid.json | 3 +++
> > >   3 files changed, 7 insertions(+)
> > > 
> > > diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
> > > index 458dfc2399..a0059fc2a7 100644
> > > --- a/src/libxl/libxl_conf.c
> > > +++ b/src/libxl/libxl_conf.c
> > > @@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, 
> > > libxl_domain_config *d_config)
> > >   b_info->video_memkb = def->videos[0]->vram;
> > >   } else {
> > >   libxl_defbool_set(_info->u.hvm.nographic, 1);
> > > +b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
> > >   }
> > >   return 0;
> > > diff --git a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json 
> > > b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
> > > index e804389fea..f16b4a971a 100644
> > > --- a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
> > > +++ b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
> > > @@ -20,6 +20,9 @@
> > >   "acpi": "True",
> > >   "acpi_firmware": "/path/to/slic.dat",
> > >   "nographic": "True",
> > > +"vga": {
> > > +"kind": "none"
> > > +},
> > >   "vnc": {
> > >   "enable": "False"
> > >   },
> > > diff --git a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json 
> > > b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
> > > index d46b464642..ddc423bca7 100644
> > > --- a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
> > > +++ b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
> > > @@ -27,6 +27,9 @@
> > >   "apic": "True",
> > >   "acpi": "True",
> > >   "nographic": "True",
> > > +"vga": {
> > > +"kind": "none"
> > > +},
> > >   "vnc": {
> > >   "enable": "False"
> > >   },
> > 
> 

-- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


signature.asc
Description: PGP signature


Re: [libvirt PATCH] libxl: vga.kind none when no device specified

2020-05-07 Thread Jim Fehlig

On 5/7/20 5:12 AM, Marek Marczykowski-Górecki wrote:

On Thu, Apr 30, 2020 at 02:31:12PM +0200, Artur Puzio wrote:

When no video device is specified in config we should set both
hvm.nographic to 1 and hvm.vga.kind to NONE.

Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
-device 'cirrus-vga' are on qemu cmdline.


Ping?


I can't find the original mail. We are in the midst of many internal IT changes 
so it is likely in a quarantine I have yet to discover.



But also, Artur, you forgot to add Signed-off-by.


The patch looks good. Artur, can you send the patch again with a S-O-B?

Regards,
Jim




---
  src/libxl/libxl_conf.c   | 1 +
  tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json | 3 +++
  tests/libxlxml2domconfigdata/fullvirt-cpuid.json | 3 +++
  3 files changed, 7 insertions(+)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 458dfc2399..a0059fc2a7 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, libxl_domain_config 
*d_config)
  b_info->video_memkb = def->videos[0]->vram;
  } else {
  libxl_defbool_set(_info->u.hvm.nographic, 1);
+b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
  }
  
  return 0;

diff --git a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json 
b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
index e804389fea..f16b4a971a 100644
--- a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
+++ b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
@@ -20,6 +20,9 @@
  "acpi": "True",
  "acpi_firmware": "/path/to/slic.dat",
  "nographic": "True",
+"vga": {
+"kind": "none"
+},
  "vnc": {
  "enable": "False"
  },
diff --git a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json 
b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
index d46b464642..ddc423bca7 100644
--- a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
+++ b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
@@ -27,6 +27,9 @@
  "apic": "True",
  "acpi": "True",
  "nographic": "True",
+"vga": {
+"kind": "none"
+},
  "vnc": {
  "enable": "False"
  },







Re: [libvirt PATCH] libxl: vga.kind none when no device specified

2020-05-07 Thread Marek Marczykowski-Górecki
On Thu, Apr 30, 2020 at 02:31:12PM +0200, Artur Puzio wrote:
> When no video device is specified in config we should set both
> hvm.nographic to 1 and hvm.vga.kind to NONE.
> 
> Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
> -device 'cirrus-vga' are on qemu cmdline.

Ping?

But also, Artur, you forgot to add Signed-off-by.

> ---
>  src/libxl/libxl_conf.c   | 1 +
>  tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json | 3 +++
>  tests/libxlxml2domconfigdata/fullvirt-cpuid.json | 3 +++
>  3 files changed, 7 insertions(+)
> 
> diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
> index 458dfc2399..a0059fc2a7 100644
> --- a/src/libxl/libxl_conf.c
> +++ b/src/libxl/libxl_conf.c
> @@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, libxl_domain_config 
> *d_config)
>  b_info->video_memkb = def->videos[0]->vram;
>  } else {
>  libxl_defbool_set(_info->u.hvm.nographic, 1);
> +b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
>  }
>  
>  return 0;
> diff --git a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json 
> b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
> index e804389fea..f16b4a971a 100644
> --- a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
> +++ b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
> @@ -20,6 +20,9 @@
>  "acpi": "True",
>  "acpi_firmware": "/path/to/slic.dat",
>  "nographic": "True",
> +"vga": {
> +"kind": "none"
> +},
>  "vnc": {
>  "enable": "False"
>  },
> diff --git a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json 
> b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
> index d46b464642..ddc423bca7 100644
> --- a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
> +++ b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
> @@ -27,6 +27,9 @@
>  "apic": "True",
>  "acpi": "True",
>  "nographic": "True",
> +"vga": {
> +"kind": "none"
> +},
>  "vnc": {
>  "enable": "False"
>  },

-- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


signature.asc
Description: PGP signature


[libvirt PATCH] libxl: vga.kind none when no device specified

2020-04-30 Thread Artur Puzio
When no video device is specified in config we should set both
hvm.nographic to 1 and hvm.vga.kind to NONE.

Without hvm.vga.kind=LIBXL_VGA_INTERFACE_TYPE_NONE both -nographic and
-device 'cirrus-vga' are on qemu cmdline.
---
 src/libxl/libxl_conf.c   | 1 +
 tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json | 3 +++
 tests/libxlxml2domconfigdata/fullvirt-cpuid.json | 3 +++
 3 files changed, 7 insertions(+)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 458dfc2399..a0059fc2a7 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -2404,6 +2404,7 @@ libxlMakeVideo(virDomainDefPtr def, libxl_domain_config 
*d_config)
 b_info->video_memkb = def->videos[0]->vram;
 } else {
 libxl_defbool_set(_info->u.hvm.nographic, 1);
+b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
 }
 
 return 0;
diff --git a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json 
b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
index e804389fea..f16b4a971a 100644
--- a/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
+++ b/tests/libxlxml2domconfigdata/fullvirt-acpi-slic.json
@@ -20,6 +20,9 @@
 "acpi": "True",
 "acpi_firmware": "/path/to/slic.dat",
 "nographic": "True",
+"vga": {
+"kind": "none"
+},
 "vnc": {
 "enable": "False"
 },
diff --git a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json 
b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
index d46b464642..ddc423bca7 100644
--- a/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
+++ b/tests/libxlxml2domconfigdata/fullvirt-cpuid.json
@@ -27,6 +27,9 @@
 "apic": "True",
 "acpi": "True",
 "nographic": "True",
+"vga": {
+"kind": "none"
+},
 "vnc": {
 "enable": "False"
 },
-- 
2.26.2