Skip to contentSkip to conversation

qemu/virtio: MSI-X support in virtio PCI

Qemu-devel Laurent Desnogues 3 participants 5 messages Jun 30, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Anthony Liguori

From: Michael S. Tsirkin <[email protected]>

This enables actual support for MSI-X in virtio PCI. First user will be virtio-net.

[...]

Quoted 9 lines
rules.mak +0 -0
index 8d6d96e..defee1d 100644
@@ -1,6 +1,6 @@
 

 %.o: %.c
-       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
+       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@")

-Wno-error=uninitialized is a rather recent addition to gcc and will probably break compilation on many systems.

Laurent

#2 lore raw
Quoted 23 lines · Laurent Desnogues
Quoted 7 lines · Anthony Liguori

From: Michael S. Tsirkin <[email protected]>

This enables actual support for MSI-X in virtio PCI. First user will be virtio-net.

[...]

Quoted 9 lines
rules.mak +0 -0
index 8d6d96e..defee1d 100644
@@ -1,6 +1,6 @@
 

 %.o: %.c
-       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
+       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@")

-Wno-error=uninitialized is a rather recent addition to gcc and will probably break compilation on many systems.

Quoted 1 line

Laurent

Yes, apparently, this was added with gcc 4.2.0, released in May 2007. Maybe we need configure to figure this out.

Signature · 1 line
MST
#3 lore raw
Quoted 20 lines · Michael S. Tsirkin
Quoted 18 lines · Laurent Desnogues
Quoted 8 lines · Anthony Liguori

From: Michael S. Tsirkin <[email protected]>

This enables actual support for MSI-X in virtio PCI. First user will be virtio-net.

[...]

Quoted 6 lines
rules.mak +0 -0
index 8d6d96e..defee1d 100644
@@ -1,6 +1,6 @@
 
Quoted 8 lines
Quoted 8 lines

rules.mak line 4

Quoted 4 lines
rules.mak +1 -1
 %.o: %.c
-       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
+       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
 

-Wno-error=uninitialized is a rather recent addition to gcc and will probably break compilation on many systems.

Adding something like this in the middle of a patch, in the middle of a big series, is also a really bad thing to do. If you want to change build arguments, it should be a separate patch.

I removed this. There are no warnings with my GCC. You can submit follow up patches trying to make a case for different ways to handle this but please separate this sort of stuff out in the future.

Regards,

Anthony Liguori

#4 lore raw
Quoted 3 lines · Anthony Liguori

Adding something like this in the middle of a patch, in the middle of a big series, is also a really bad thing to do. If you want to change build arguments, it should be a separate patch.

I removed this. There are no warnings with my GCC. You can submit follow up patches trying to make a case for different ways to handle this but please separate this sort of stuff out in the future.

Looks like Paul beat me to it.

Signature · 3 lines
Regards,

Anthony Liguori
#5 lore raw
In reply to Anthony Liguori
Quoted 30 lines · Anthony Liguori
Quoted 20 lines · Michael S. Tsirkin
Quoted 18 lines · Laurent Desnogues
Quoted 8 lines · Anthony Liguori

From: Michael S. Tsirkin <[email protected]>

This enables actual support for MSI-X in virtio PCI. First user will be virtio-net.

[...]

Quoted 6 lines
rules.mak +0 -0
index 8d6d96e..defee1d 100644
@@ -1,6 +1,6 @@
 
Quoted 8 lines
Quoted 8 lines

rules.mak line 4

Quoted 4 lines
rules.mak +1 -1
 %.o: %.c
-       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
+       $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -Werror -Wno-error=uninitialized -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
 

-Wno-error=uninitialized is a rather recent addition to gcc and will probably break compilation on many systems.

Quoted 2 lines

Adding something like this in the middle of a patch, in the middle of a big series, is also a really bad thing to do.

I know. I think I just mistakenly did "git commit -a" at some point, and it slipped through review.

Quoted 10 lines

If you want to change
build arguments, it should be a separate patch.

I removed this. There are no warnings with my GCC. You can submit follow up patches trying to make a case for different ways to handle this but please separate this sort of stuff out in the future.

Regards,

Anthony Liguori