All of lore.kernel.org
 help / color / mirror / Atom feed
* libxl: disable msitranslate by default
@ 2012-06-27 13:56 Stefano Stabellini
  2012-06-27 14:59 ` Ian Campbell
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2012-06-27 13:56 UTC (permalink / raw)
  To: xen-devel; +Cc: george.dunlap, Ian Campbell, Stefano Stabellini

msitranslate is known to cause problems with some device drivers,
because it sets the real device in MSI mode while making the guest think
is actually in legacy interrupts mode. Some drivers are able to spot this
inconsistency and break (Nvidia drivers for example).

Disable msitranslate by default.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
index afa0af6..c80b9fb 100644
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -562,7 +562,7 @@ static void parse_config_data(const char *config_source,
     XLU_Config *config;
     XLU_ConfigList *cpus, *vbds, *nics, *pcis, *cvfbs, *cpuids;
     int pci_power_mgmt = 0;
-    int pci_msitranslate = 1;
+    int pci_msitranslate = 0;
     int pci_permissive = 0;
     int e;

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

* Re: libxl: disable msitranslate by default
  2012-06-27 13:56 libxl: disable msitranslate by default Stefano Stabellini
@ 2012-06-27 14:59 ` Ian Campbell
  2012-06-27 15:25   ` Stefano Stabellini
  2012-06-28 14:50   ` Ian Jackson
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Campbell @ 2012-06-27 14:59 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: George Dunlap, xen-devel

On Wed, 2012-06-27 at 14:56 +0100, Stefano Stabellini wrote:
> msitranslate is known to cause problems with some device drivers,
> because it sets the real device in MSI mode while making the guest think
> is actually in legacy interrupts mode. Some drivers are able to spot this
> inconsistency and break (Nvidia drivers for example).
> 
> Disable msitranslate by default.
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

Acked-by: Ian Campbell <ian.campbell@citrix.com>

I saw a qemu (trad) patch and I see I've got an xl patch further down my
inbox. There is no sequencing requirement here, is there?

I wonder if this field shouyld be a defbool instead of just a bool? I
don't recall why I didn't transition it when I made the defbool stuff.

> 
> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> index afa0af6..c80b9fb 100644
> --- a/tools/libxl/xl_cmdimpl.c
> +++ b/tools/libxl/xl_cmdimpl.c
> @@ -562,7 +562,7 @@ static void parse_config_data(const char *config_source,
>      XLU_Config *config;
>      XLU_ConfigList *cpus, *vbds, *nics, *pcis, *cvfbs, *cpuids;
>      int pci_power_mgmt = 0;
> -    int pci_msitranslate = 1;
> +    int pci_msitranslate = 0;
>      int pci_permissive = 0;
>      int e;

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

* Re: libxl: disable msitranslate by default
  2012-06-27 14:59 ` Ian Campbell
@ 2012-06-27 15:25   ` Stefano Stabellini
  2012-06-28 14:42     ` Ian Jackson
  2012-06-28 14:50   ` Ian Jackson
  1 sibling, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2012-06-27 15:25 UTC (permalink / raw)
  To: Ian Campbell; +Cc: George Dunlap, xen-devel, Stefano Stabellini

On Wed, 27 Jun 2012, Ian Campbell wrote:
> On Wed, 2012-06-27 at 14:56 +0100, Stefano Stabellini wrote:
> > msitranslate is known to cause problems with some device drivers,
> > because it sets the real device in MSI mode while making the guest think
> > is actually in legacy interrupts mode. Some drivers are able to spot this
> > inconsistency and break (Nvidia drivers for example).
> > 
> > Disable msitranslate by default.
> > 
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> 
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
> 
> I saw a qemu (trad) patch and I see I've got an xl patch further down my
> inbox. There is no sequencing requirement here, is there?

nope

> I wonder if this field shouyld be a defbool instead of just a bool? I
> don't recall why I didn't transition it when I made the defbool stuff.

I think it could be a defbool

> > 
> > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> > index afa0af6..c80b9fb 100644
> > --- a/tools/libxl/xl_cmdimpl.c
> > +++ b/tools/libxl/xl_cmdimpl.c
> > @@ -562,7 +562,7 @@ static void parse_config_data(const char *config_source,
> >      XLU_Config *config;
> >      XLU_ConfigList *cpus, *vbds, *nics, *pcis, *cvfbs, *cpuids;
> >      int pci_power_mgmt = 0;
> > -    int pci_msitranslate = 1;
> > +    int pci_msitranslate = 0;
> >      int pci_permissive = 0;
> >      int e;
> 
> 
> 

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

* Re: libxl: disable msitranslate by default
  2012-06-27 15:25   ` Stefano Stabellini
@ 2012-06-28 14:42     ` Ian Jackson
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2012-06-28 14:42 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: George Dunlap, xen-devel, Ian Campbell

Stefano Stabellini writes ("Re: [Xen-devel] libxl: disable msitranslate by default"):
> On Wed, 27 Jun 2012, Ian Campbell wrote:
> > I saw a qemu (trad) patch and I see I've got an xl patch further down my
> > inbox. There is no sequencing requirement here, is there?
> 
> nope

Thanks.

> > I wonder if this field shouyld be a defbool instead of just a bool? I
> > don't recall why I didn't transition it when I made the defbool stuff.
> 
> I think it could be a defbool

I'll apply the patch as-is but perhaps a followup to change it to a
defbool would be good ?

Ian.

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

* Re: libxl: disable msitranslate by default
  2012-06-27 14:59 ` Ian Campbell
  2012-06-27 15:25   ` Stefano Stabellini
@ 2012-06-28 14:50   ` Ian Jackson
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Jackson @ 2012-06-28 14:50 UTC (permalink / raw)
  To: Ian Campbell; +Cc: George Dunlap, xen-devel, Stefano Stabellini

Ian Campbell writes ("Re: [Xen-devel] libxl: disable msitranslate by default"):
> On Wed, 2012-06-27 at 14:56 +0100, Stefano Stabellini wrote:
> > msitranslate is known to cause problems with some device drivers,
> > because it sets the real device in MSI mode while making the guest think
> > is actually in legacy interrupts mode. Some drivers are able to spot this
> > inconsistency and break (Nvidia drivers for example).
> > 
> > Disable msitranslate by default.
> > 
> > Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> 
> Acked-by: Ian Campbell <ian.campbell@citrix.com>

Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

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

end of thread, other threads:[~2012-06-28 14:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 13:56 libxl: disable msitranslate by default Stefano Stabellini
2012-06-27 14:59 ` Ian Campbell
2012-06-27 15:25   ` Stefano Stabellini
2012-06-28 14:42     ` Ian Jackson
2012-06-28 14:50   ` Ian Jackson

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.