qemu/virtio: MSI-X support in virtio PCI
A message that is not in the archive (sent off-list or not yet received): [email protected]
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.
Signed-off-by Michael S. Tsirkin <[email protected]>Signed-off-by Anthony Liguori <[email protected]>
[...]
Quoted 9 lines
rules.mak +0
-0@@ -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
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.
Signed-off-by Michael S. Tsirkin <[email protected]>Signed-off-by Anthony Liguori <[email protected]>[...]
Quoted 9 lines
rules.mak +0
-0@@ -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
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.
Signed-off-by Michael S. Tsirkin <[email protected]>Signed-off-by Anthony Liguori <[email protected]>[...]
Quoted 6 lines
rules.mak +0
-0@@ -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
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
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.
Signed-off-by Michael S. Tsirkin <[email protected]>Signed-off-by Anthony Liguori <[email protected]>[...]
Quoted 6 lines
rules.mak +0
-0@@ -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