Re: [Qemu-devel] [PATCH v2 1/2] net: introduce MAC_TABLE_CHANGED event

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 01:04:55PM +0800, Amos Kong wrote: On Thu, May 16, 2013 at 03:17:45PM +0300, Michael S. Tsirkin wrote: On Thu, May 16, 2013 at 07:07:24PM +0800, Amos Kong wrote: Introduce this new QMP event to notify management after guest changes mac-table configuration

Re: [Qemu-devel] [PATCH 2/2] pcie: Add more ASPM support

2013-05-21 Thread Michael S. Tsirkin
On Mon, May 20, 2013 at 02:44:25PM -0600, Bjorn Helgaas wrote: On Mon, May 20, 2013 at 12:32 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, May 20, 2013 at 11:09:56AM -0600, Bjorn Helgaas wrote: Indicate ASPM L0s and L1 support in Link Capabilities and make the ASPM bits in Link

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote: Hi Please, send any topic that you are interested in covering. Thanks, Juan. Generating acpi tables

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 06:40:18PM +0200, Andreas Färber wrote: Am 21.05.2013 16:34, schrieb Juan Quintela: Anthony Liguori anth...@codemonkey.ws wrote: Maybe we could use a wiki page to setup a rolling agenda? I think this could be easier for everybody involved. Especially because

Re: [Qemu-devel] KVM call agenda for 2013-05-21

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 09:29:07AM -0500, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Tue, May 21, 2013 at 07:18:58AM -0500, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Mon, May 20, 2013 at 12:57:47PM +0200, Juan Quintela wrote

[Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-21 Thread Michael S. Tsirkin
Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well formed before linking, and rebuilds it if not. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Is below useful for others

[Qemu-devel] [PATCHv2 RFC] makefile: detect corrupted elf files

2013-05-21 Thread Michael S. Tsirkin
Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well formed before linking, and rebuilds it if not. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- v1 actually prints some noise on stderr

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-21 Thread Michael S. Tsirkin
On Tue, May 21, 2013 at 11:01:05PM +0100, Peter Maydell wrote: On 21 May 2013 22:46, Michael S. Tsirkin m...@redhat.com wrote: Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well formed

Re: [Qemu-devel] [PATCHv2 RFC] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 08:32:52AM +0200, Stefan Weil wrote: Am 22.05.2013 00:07, schrieb Michael S. Tsirkin: Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well formed before linking

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 09:44:04AM +0200, Markus Armbruster wrote: Michael S. Tsirkin m...@redhat.com writes: On Tue, May 21, 2013 at 11:01:05PM +0100, Peter Maydell wrote: On 21 May 2013 22:46, Michael S. Tsirkin m...@redhat.com wrote: Once in a while make gets killed and doesn't

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 09:38:39AM +0100, Peter Maydell wrote: On 22 May 2013 09:37, Michael S. Tsirkin m...@redhat.com wrote: It's my fault for running -rc kernels all the time I guess, I get crashes kind of often, and losing more time on make clean on top of reboot annoys me. But we

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 10:43:45AM +0200, Paolo Bonzini wrote: Il 22/05/2013 10:38, Peter Maydell ha scritto: On 22 May 2013 09:37, Michael S. Tsirkin m...@redhat.com wrote: It's my fault for running -rc kernels all the time I guess, I get crashes kind of often, and losing more time on make

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 11:22:52AM +0200, Paolo Bonzini wrote: Il 22/05/2013 10:52, Michael S. Tsirkin ha scritto: The fix is simple here: don't use ccache. I don't. In fact, from what I saw people use ccache to work around makefile bugs, so they can do make clean; make and have

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 11:48:54AM +0200, Stefan Hajnoczi wrote: On Wed, May 22, 2013 at 12:46:45AM +0300, Michael S. Tsirkin wrote: Once in a while make gets killed and doesn't clean up partial object files after it. Result is nasty errors from link. This hack checks object is well

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 12:40:23PM +0200, Paolo Bonzini wrote: Il 22/05/2013 11:42, Michael S. Tsirkin ha scritto: On Wed, May 22, 2013 at 11:22:52AM +0200, Paolo Bonzini wrote: Il 22/05/2013 10:52, Michael S. Tsirkin ha scritto: The fix is simple here: don't use ccache. I don't

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 12:51:42PM +0200, Paolo Bonzini wrote: Il 22/05/2013 12:50, Michael S. Tsirkin ha scritto: On Wed, May 22, 2013 at 12:40:23PM +0200, Paolo Bonzini wrote: Il 22/05/2013 11:42, Michael S. Tsirkin ha scritto: On Wed, May 22, 2013 at 11:22:52AM +0200, Paolo Bonzini wrote

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-22 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 01:12:15PM +0200, Paolo Bonzini wrote: Il 22/05/2013 13:09, Michael S. Tsirkin ha scritto: Usually I do the same---I just do slightly more thorough testing for configure patches. I've no idea what happens with ccache on a crash by the way. It's possible

[Qemu-devel] updated: kvm networking todo wiki

2013-05-23 Thread Michael S. Tsirkin
Hey guys, I've updated the kvm networking todo wiki with current projects. Will try to keep it up to date more often. Original announcement below. I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication, but also in the hope to draw attention to what I

Re: [Qemu-devel] [PATCH v3 2/2] net: introduce command to query rx-filter information

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:08:00PM +0800, Amos Kong wrote: We want to implement mac programming over macvtap through Libvirt, related rx-filter configuration contains main mac, some of rx-mode and mac-table. The previous patch adds QMP event to notify management of rx-filter change. This

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:07:59PM +0800, Amos Kong wrote: Introduce this new QMP event to notify management after guest changes rx-filter configuration. Signed-off-by: Amos Kong ak...@redhat.com --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 +

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: Currently pci_get_primary_bus() searches the list of root buses for one with domain 0. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. This simplifies the

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:09AM +1000, David Gibson wrote: pci_find_domain() is used in a number of places where we want an id for a whole PCI domain (i.e. the subtree under a PCI root bus). The trouble is that many platforms may support multiple independent host bridges with no hardware

Re: [Qemu-devel] [PATCH 1/8] pci: Cleanup configuration for pci-hotplug.c

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:05AM +1000, David Gibson wrote: pci-hotplug.c and the CONFIG_PCI_HOTPLUG variable which controls its compilation are misnamed. They're not about PCI hotplug in general, but rather about the pci_add/pci_del interface which are now deprecated in favour of the more

Re: [Qemu-devel] [0/8] Clean up PCI code to allow for multiple root buses

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:04AM +1000, David Gibson wrote: The current PCI subsystem has kind of half-hearted support for multiple independent root buses - aka PCI domains - in the form of the PCIHostBus structure and its domain field. However, it doesn't quite work because

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: Currently pci_get_primary_bus() searches the list of root buses for one with domain 0. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. This simplifies the

Re: [Qemu-devel] [PATCH 3/8] pci: Abolish pci_find_root_bus()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:07AM +1000, David Gibson wrote: pci_find_root_bus() takes a domain parameter. Currently PCI root buses with domain other than 0 can't be created, so this is more or less a long winded way of retrieving the main PCI root bus. Numbered domains don't actually

[Qemu-devel] KVM call agenda for 2013-05-28

2013-05-23 Thread Michael S. Tsirkin
Juan is not available now, and Anthony asked for agenda to be sent early. So here comes: Agenda for the meeting Tue, May 28: - Generating acpi tables - Switching the call to a bi-weekly schedule Please, send any topic that you are interested in covering. Thanks, MST -- MST

[Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Michael S. Tsirkin
I'm working on adding new virtio layout to qemu. The job is complicated by the fact that qemu has its own copy of the virtio headers, sometimes with slightly different names and structure. Import headers from linux instead. Michael S. Tsirkin (10): scripts/update-linux-headers.sh: add virtio

[Qemu-devel] [PATCH 06/10] virtio-rng: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_rng.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-rng.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/virtio/virtio-rng.h | 5 ++--- linux-headers

[Qemu-devel] [PATCH 01/10] scripts/update-linux-headers.sh: add virtio

2013-05-23 Thread Michael S. Tsirkin
Add virtio headers to make it easy to keep things in sync. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- scripts/update-linux-headers.sh | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh

[Qemu-devel] [PATCH 07/10] virtio-console: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_console.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-serial.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/virtio/virtio-serial.h| 38

[Qemu-devel] [PATCH 08/10] virtio: add virtio_ids from linux-headers

2013-05-23 Thread Michael S. Tsirkin
All imported headers will use it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- linux-headers/linux/virtio_ids.h | 43 1 file changed, 43 insertions(+) create mode 100644 linux-headers/linux/virtio_ids.h diff --git a/linux-headers/linux

[Qemu-devel] [PATCH 02/10] virtio-9p: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio-9p header from linux 3.10-rc1, and remove duplicate symbols from virtio-9p.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/9pfs/virtio-9p.h | 13 +--- linux-headers

[Qemu-devel] [PATCH 05/10] virtio-balloon: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_balloon.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-balloon.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-balloon.c | 2

[Qemu-devel] [PATCH 09/10] virtio-pci: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_pci.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-pci.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-pci.c | 49

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 10:28:42AM -0400, Luiz Capitulino wrote: On Thu, 23 May 2013 13:24:59 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Thu, May 23, 2013 at 05:07:59PM +0800, Amos Kong wrote: Introduce this new QMP event to notify management after guest changes rx-filter

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 10:16:13PM +1000, David Gibson wrote: On Thu, May 23, 2013 at 02:01:57PM +0300, Michael S. Tsirkin wrote: On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: Currently pci_get_primary_bus() searches the list of root buses for one with domain 0. But since

[Qemu-devel] [PATCH 10/10] virtio: use ring structure from linux-headers

2013-05-23 Thread Michael S. Tsirkin
We already have ring structure in virtio-ring.h for use by dataplane. Use it in virtio.h as well, renaming some conflicting functions. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio.c | 23 +-- include/hw/virtio/virtio.h | 45

[Qemu-devel] [PATCH 04/10] virtio-blk: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
this struct match the qemu coding style. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/block/dataplane/virtio-blk.c | 12 ++-- hw/block/virtio-blk.c| 10 +-- include/hw/virtio/virtio-blk.h | 86 ++ linux-headers/linux/virtio_blk.h | 128

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 03:41:07PM +0100, Peter Maydell wrote: On 23 May 2013 15:34, Michael S. Tsirkin m...@redhat.com wrote: I'm working on adding new virtio layout to qemu. The job is complicated by the fact that qemu has its own copy of the virtio headers, sometimes with slightly

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 04:51:17PM +0200, Paolo Bonzini wrote: Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: Most current uses of pci_find_domain() are for error or informational messages, so the change in identifiers should be harmless. The exception is pci_get_dev_path(), whose

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 08:52:16AM -0600, Eric Blake wrote: On 05/23/2013 08:43 AM, Michael S. Tsirkin wrote: Please stress this is only for the NIC. It does not apply to non-NIC netclients. Stress it in the event name too, please. I find RX_FILTER_CHANGED a bit generic. What do

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:00:39PM +0200, Paolo Bonzini wrote: Il 23/05/2013 16:57, Michael S. Tsirkin ha scritto: On Thu, May 23, 2013 at 04:51:17PM +0200, Paolo Bonzini wrote: Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: Most current uses of pci_find_domain() are for error

[Qemu-devel] [PATCH 03/10] virtio-net, eth: use linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything virtio in sync if we just use headers exported from linux kernel. Import linux/virtio_net.h and linux/if_ether.h that it depends on. Switch to symbols from that header for stuff that was duplicated in tap.h and eth.h Signed-off-by: Michael S. Tsirkin m...@redhat.com

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:56:43PM +0300, Michael S. Tsirkin wrote: On Thu, May 23, 2013 at 03:41:07PM +0100, Peter Maydell wrote: On 23 May 2013 15:34, Michael S. Tsirkin m...@redhat.com wrote: I'm working on adding new virtio layout to qemu. The job is complicated by the fact

Re: [Qemu-devel] [PATCH v2 1/2] net: introduce MAC_TABLE_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 11:54:03AM -0400, Luiz Capitulino wrote: On Thu, 16 May 2013 18:17:23 +0300 Michael S. Tsirkin m...@redhat.com wrote: The existing throttling approach ensures that if the event includes latest guest information, then the host doesn't even have to do do a query

Re: [Qemu-devel] [PATCH 27/30] pci: use memory core for iommu support

2013-05-23 Thread Michael S. Tsirkin
to AddressSpace. Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Avi Kivity avi.kiv...@gmail.com [ Do not calls memory_region_del_subregion() on the device's bus_master_enable_region, it is an alias; return an AddressSpace from the IOMMU hook and remove the destructor hook. - David Gibson

Re: [Qemu-devel] updated: kvm networking todo wiki

2013-05-24 Thread Michael S. Tsirkin
On Fri, May 24, 2013 at 05:41:11PM +0800, Jason Wang wrote: On 05/23/2013 04:50 PM, Michael S. Tsirkin wrote: Hey guys, I've updated the kvm networking todo wiki with current projects. Will try to keep it up to date more often. Original announcement below. Thanks a lot. I've added

Re: [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller

2013-05-24 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 11:46:33AM +0800, liguang wrote: These patches try to add ACPI Embedded Controller (EC), refer-to: ACPI SPEC v5 chapter 5 ACPI Embedded Controller Interface Specification EC is a standard ACPI device, it plays flexible roles, e.g. power controller, it can control

Re: [Qemu-devel] [PATCH v4] net: introduce command to query rx-filter information

2013-05-24 Thread Michael S. Tsirkin
On Fri, May 24, 2013 at 02:44:06PM +0800, Amos Kong wrote: We want to implement mac programming over macvtap through Libvirt. The related rx-filter information of the nic contains main mac, rx-mode items. This patch adds a QMP event to notify management of rx-filter change, and adds a

Re: [Qemu-devel] [PATCH v2 1/2] net: introduce MAC_TABLE_CHANGED event

2013-05-24 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 01:26:33PM -0400, Luiz Capitulino wrote: On Thu, 23 May 2013 20:18:34 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Thu, May 23, 2013 at 11:54:03AM -0400, Luiz Capitulino wrote: On Thu, 16 May 2013 18:17:23 +0300 Michael S. Tsirkin m...@redhat.com wrote

Re: [Qemu-devel] updated: kvm networking todo wiki

2013-05-24 Thread Michael S. Tsirkin
On Fri, May 24, 2013 at 08:47:58AM -0500, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Fri, May 24, 2013 at 05:41:11PM +0800, Jason Wang wrote: On 05/23/2013 04:50 PM, Michael S. Tsirkin wrote: Hey guys, I've updated the kvm networking todo wiki with current

Re: [Qemu-devel] [PATCH v3 2/2] net: introduce command to query rx-filter information

2013-05-24 Thread Michael S. Tsirkin
On Fri, May 24, 2013 at 05:20:13PM +0200, Markus Armbruster wrote: Eric Blake ebl...@redhat.com writes: On 05/24/2013 06:23 AM, Luiz Capitulino wrote: I don't think we need this argument. This command is quite simple in its response, let's do this filtering in HMP only. Event message

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sat, May 25, 2013 at 05:32:24PM +, Blue Swirl wrote: On Wed, May 22, 2013 at 11:35 AM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, May 22, 2013 at 01:12:15PM +0200, Paolo Bonzini wrote: Il 22/05/2013 13:09, Michael S. Tsirkin ha scritto: Usually I do the same---I just do

Re: [Qemu-devel] [PATCH v3 2/2] net: introduce command to query rx-filter information

2013-05-26 Thread Michael S. Tsirkin
On Fri, May 24, 2013 at 04:00:42PM -0400, Luiz Capitulino wrote: On Fri, 24 May 2013 12:05:12 -0600 Eric Blake ebl...@redhat.com wrote: On 05/24/2013 10:12 AM, Michael S. Tsirkin wrote: Event message contains the net client name, management might only want to query the single net

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 10:12:21AM +0100, Peter Maydell wrote: On 26 May 2013 08:35, Michael S. Tsirkin m...@redhat.com wrote: On Sat, May 25, 2013 at 05:32:24PM +, Blue Swirl wrote: Another way to handle this would be to enhance GCC and linker to use atomic operations when producing

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 02:48:11PM +0200, Stefan Weil wrote: Am 26.05.2013 14:31, schrieb Michael S. Tsirkin: On Sun, May 26, 2013 at 10:12:21AM +0100, Peter Maydell wrote: On 26 May 2013 08:35, Michael S. Tsirkin m...@redhat.com wrote: On Sat, May 25, 2013 at 05:32:24PM +, Blue Swirl

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 02:36:28PM +0100, Peter Maydell wrote: On 26 May 2013 13:31, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 10:12:21AM +0100, Peter Maydell wrote: I definitely think individual project makefiles are the wrong place to fix this. If create-as-temp

[Qemu-devel] [PATCH v2 01/11] make: pull in linux-headers on all platforms

2013-05-26 Thread Michael S. Tsirkin
Things we pull from linux-headers are actually quite portable. All we need is implement linux/types.h using stdint.h and we are able to compile on any platform. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Makefile.target | 5 +++-- configure | 7 ++- 2 files changed, 9

[Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-26 Thread Michael S. Tsirkin
we import from linux-headers, we'll have to revert to copying code manually. This didn't happen yet so hopefully it won't. Changes from v1: - add stubs for non linux platforms - fix mingw cross build Michael S. Tsirkin (11): make: pull in linux-headers on all platforms scripts/update

[Qemu-devel] [PATCH v2 02/11] scripts/update-linux-headers.sh: add virtio

2013-05-26 Thread Michael S. Tsirkin
Add virtio headers to make it easy to keep things in sync. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- scripts/update-linux-headers.sh | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh

[Qemu-devel] [PATCH v2 03/11] virtio-9p: switch to linux-headers

2013-05-26 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio-9p header from linux 3.10-rc1, and remove duplicate symbols from virtio-9p.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/9pfs/virtio-9p.h | 13 +--- linux-headers

[Qemu-devel] [PATCH v2 06/11] virtio-balloon: switch to linux-headers

2013-05-26 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_balloon.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-balloon.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-balloon.c | 2

[Qemu-devel] [PATCH v2 04/11] virtio-net, eth: use linux-headers

2013-05-26 Thread Michael S. Tsirkin
It's easier to keep everything virtio in sync if we just use headers exported from linux kernel. Import linux/virtio_net.h and linux/if_ether.h that it depends on. Switch to symbols from that header for stuff that was duplicated in tap.h and eth.h Signed-off-by: Michael S. Tsirkin m...@redhat.com

[Qemu-devel] [PATCH v2 05/11] virtio-blk: switch to linux-headers

2013-05-26 Thread Michael S. Tsirkin
this struct match the qemu coding style. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/block/dataplane/virtio-blk.c | 12 ++-- hw/block/virtio-blk.c| 10 +-- include/hw/virtio/virtio-blk.h | 86 ++ linux-headers/linux/virtio_blk.h | 128

[Qemu-devel] [PATCH v2 11/11] virtio: use ring structure from linux-headers

2013-05-26 Thread Michael S. Tsirkin
We already have ring structure in virtio-ring.h for use by dataplane. Use it in virtio.h as well, renaming some conflicting functions. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio.c | 23 +-- include/hw/virtio/virtio.h | 45

[Qemu-devel] [PATCH v2 10/11] virtio-pci: switch to linux-headers

2013-05-26 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_pci.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-pci.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-pci.c | 49

[Qemu-devel] [PATCH v2 07/11] virtio-rng: switch to linux-headers

2013-05-26 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_rng.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-rng.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/virtio/virtio-rng.h | 5 ++--- linux-headers

[Qemu-devel] [PATCH v2 08/11] virtio-console: switch to linux-headers

2013-05-26 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_console.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-serial.h Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/virtio/virtio-serial.h| 38

[Qemu-devel] [PATCH v2 09/11] virtio: add virtio_ids from linux-headers

2013-05-26 Thread Michael S. Tsirkin
All imported headers will use it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- linux-headers/linux/virtio_ids.h | 43 1 file changed, 43 insertions(+) create mode 100644 linux-headers/linux/virtio_ids.h diff --git a/linux-headers/linux

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 04:43:57PM +0100, Peter Maydell wrote: On 26 May 2013 16:22, Michael S. Tsirkin m...@redhat.com wrote: virtio linux headers are actually pretty portable: all we need is implement linux/types.h in a portable way, and we can import them and use on any platform

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 07:00:58PM +0100, Peter Maydell wrote: On 26 May 2013 18:51, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 04:43:57PM +0100, Peter Maydell wrote: This series breaks compilation on MacOSX: CCnet/eth.o In file included from net/eth.c:18

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 06:20:17PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 1:40 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 02:36:28PM +0100, Peter Maydell wrote: On 26 May 2013 13:31, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 10

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 08:26:14PM +0200, Paolo Bonzini wrote: Il 26/05/2013 20:10, Michael S. Tsirkin ha scritto: On Sun, May 26, 2013 at 07:00:58PM +0100, Peter Maydell wrote: On 26 May 2013 18:51, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 04:43:57PM +0100, Peter

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 08:53:33PM +0200, Paolo Bonzini wrote: Il 26/05/2013 20:37, Michael S. Tsirkin ha scritto: I don't like defining __-prefixed types. Can we preprocess linux-headers to avoid usage of __u8/16/32/64, and to s,linux/types.h,stdint.h, ? Paolo Let's

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 07:28:40PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 6:24 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 06:20:17PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 1:40 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 08:29:35PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 8:15 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 07:28:40PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 6:24 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-26 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 03:49:53PM -0500, Anthony Liguori wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 26/05/2013 22:02, Michael S. Tsirkin ha scritto: My fault. I should have looked at linux/types.h (actually asm-generic/). Not really, __uX appear in the headers that were

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-27 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 07:55:25PM -0500, Anthony Liguori wrote: Michael S. Tsirkin m...@redhat.com writes: On Sun, May 26, 2013 at 03:49:53PM -0500, Anthony Liguori wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 26/05/2013 22:02, Michael S. Tsirkin ha scritto: My fault. I

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-27 Thread Michael S. Tsirkin
On Mon, May 27, 2013 at 11:34:09AM +0200, Stefan Hajnoczi wrote: On Sun, May 26, 2013 at 11:32:49AM +0200, Luke Gorrie wrote: Stefan put us onto the highly promising track of vhost/virtio. We have implemented this between Snabb Switch and the Linux kernel, but not directly between Snabb

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-27 Thread Michael S. Tsirkin
On Mon, May 27, 2013 at 12:01:07PM -0500, Anthony Liguori wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 27/05/2013 18:18, Anthony Liguori ha scritto: Paolo Bonzini pbonz...@redhat.com writes: Il 27/05/2013 11:34, Stefan Hajnoczi ha scritto: On Sun, May 26, 2013 at 11:32:49AM

Re: [Qemu-devel] [PATCH 3/4] ich9: add notifer for ec to generate sci

2013-05-27 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 11:46:36AM +0800, liguang wrote: Signed-off-by: liguang lig.f...@cn.fujitsu.com --- hw/acpi/ich9.c | 15 +++ include/hw/acpi/ich9.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index

Re: [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller

2013-05-27 Thread Michael S. Tsirkin
On Mon, May 27, 2013 at 09:22:59AM +0800, li guang wrote: 在 2013-05-26日的 19:51 -0500,Anthony Liguori写道: li guang lig.f...@cn.fujitsu.com writes: 在 2013-05-24五的 14:45 +0300,Michael S. Tsirkin写道: On Wed, May 22, 2013 at 11:46:33AM +0800, liguang wrote: These patches try to add ACPI

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-28 Thread Michael S. Tsirkin
On Mon, May 27, 2013 at 11:14:47AM -0500, Anthony Liguori wrote: Well specifically if_ether.h says GPLv2+ so it's OK for QEMU. Do you mean for some other non GPL app? Ignore QEMU for the moment. The headers say they are BSD licensed... but they include a GPLv2+ header. Above is a bit

Re: [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 08:21:24AM +0800, li guang wrote: 在 2013-05-27一的 23:23 +0300,Michael S. Tsirkin写道: On Mon, May 27, 2013 at 09:22:59AM +0800, li guang wrote: 在 2013-05-26日的 19:51 -0500,Anthony Liguori写道: li guang lig.f...@cn.fujitsu.com writes: 在 2013-05-24五的 14:45 +0300

Re: [Qemu-devel] [PATCH 3/4] ich9: add notifer for ec to generate sci

2013-05-28 Thread Michael S. Tsirkin
On Wed, May 22, 2013 at 11:46:36AM +0800, liguang wrote: Signed-off-by: liguang lig.f...@cn.fujitsu.com --- hw/acpi/ich9.c | 15 +++ include/hw/acpi/ich9.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index

Re: [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 02:40:30PM +0800, li guang wrote: Hi, Michael 在 2013-05-28二的 09:31 +0300,Michael S. Tsirkin写道: On Tue, May 28, 2013 at 08:21:24AM +0800, li guang wrote: 在 2013-05-27一的 23:23 +0300,Michael S. Tsirkin写道: On Mon, May 27, 2013 at 09:22:59AM +0800, li guang wrote

[Qemu-devel] [PATCH RFC] virtio-pci: fix LE host/BE guest capacity for blk

2013-05-28 Thread Michael S. Tsirkin
. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- I don't seem to be able to boot any big-endian guests ATM, so this is only compile-tested - sending this out for early feedback/flames. Testing reports also wellcome! hw/virtio/virtio-pci.c | 9 + 1 file changed, 9 insertions(+) diff

[Qemu-devel] [PATCH v2 RFC] virtio-pci: fix LE host/BE guest capacity for blk

2013-05-28 Thread Michael S. Tsirkin
. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Changes from v1: fixed some obvious bugs. I don't seem to be able to boot any big-endian guests ATM, so this is only compile-tested - sending this out for early feedback/flames. Testing reports also wellcome! diff --git a/hw/virtio/virtio

[Qemu-devel] [PATCH] virtio-pci: drop unused wmb macro

2013-05-28 Thread Michael S. Tsirkin
The implementation is wrong for kvm, and it's unused anyway. Drop it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-pci.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 87b78bc..f4db224 100644 --- a/hw

Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files

2013-05-28 Thread Michael S. Tsirkin
On Sun, May 26, 2013 at 08:29:35PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 8:15 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26, 2013 at 07:28:40PM +, Blue Swirl wrote: On Sun, May 26, 2013 at 6:24 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, May 26

Re: [Qemu-devel] [PATCH RFC] virtio-pci: fix LE host/BE guest capacity for blk

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 12:14:59PM +0200, Paolo Bonzini wrote: Il 28/05/2013 12:11, Michael S. Tsirkin ha scritto: When a BE guest reads capacity from an LE host virtio-blk device or vice versa, it will get the dwords of the qword field swapped. As virtio-blk is the only one

[Qemu-devel] error building x86_64-linux-user on i686 host

2013-05-28 Thread Michael S. Tsirkin
Building target x86_64-linux-user on a 32 bit host gives me this error: [mst@robin x86_64-linux-user]$ cc -I/scm/qemu/tcg -I/scm/qemu/tcg/i386 -I/scm/qemu/linux-headers -I. -I/scm/qemu -I/scm/qemu/include -I/scm/qemu/linux-user -Ilinux-user -Werror -fPIE -DPIE -m32 -D_GNU_SOURCE

Re: [Qemu-devel] error building x86_64-linux-user on i686 host

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 02:11:21PM +0300, Michael S. Tsirkin wrote: Building target x86_64-linux-user on a 32 bit host gives me this error: [mst@robin x86_64-linux-user]$ cc -I/scm/qemu/tcg -I/scm/qemu/tcg/i386 -I/scm/qemu/linux-headers -I. -I/scm/qemu -I/scm/qemu/include -I/scm/qemu

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 01:36:36PM +0200, Julian Stecklina wrote: On 05/28/2013 12:10 PM, Luke Gorrie wrote: On 27 May 2013 11:34, Stefan Hajnoczi stefa...@redhat.com mailto:stefa...@redhat.com wrote: vhost_net is about connecting the a virtio-net speaking process to a tun-like

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 02:09:21PM +0200, Julian Stecklina wrote: On 05/28/2013 01:53 PM, Michael S. Tsirkin wrote: Implementing out of process device logic would absolutely be useful for qemu, for security. Don't expect it to be zero overhead though, latency overhead of bouncing each

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 05:35:55PM +0200, Julian Stecklina wrote: On 05/28/2013 03:56 PM, Michael S. Tsirkin wrote: and in fact that was how vhost worked originally. There were some issues to be fixed before it worked without issues, but we do plan to go back to that I think. Do you know

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 12:00:38PM -0500, Anthony Liguori wrote: Julian Stecklina jstec...@os.inf.tu-dresden.de writes: On 05/28/2013 12:10 PM, Luke Gorrie wrote: On 27 May 2013 11:34, Stefan Hajnoczi stefa...@redhat.com mailto:stefa...@redhat.com wrote: vhost_net is about

Re: [Qemu-devel] anyone willing to review a virtio-net guest driver for OVMF?

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 03:30:20AM +0200, Laszlo Ersek wrote: Hi, the driver in question is intended as a fallback driver when the iPXE EFI driver for virtio-net is not present as an oprom. The series starts with technical notes that should help the virtio-net expert catch any errors more

Re: [Qemu-devel] KVM call agenda for 2013-05-28

2013-05-29 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 07:53:09PM -0400, Kevin O'Connor wrote: On Thu, May 23, 2013 at 03:41:32PM +0300, Michael S. Tsirkin wrote: Juan is not available now, and Anthony asked for agenda to be sent early. So here comes: Agenda for the meeting Tue, May 28: - Generating acpi tables

  1   2   3   4   5   6   7   8   9   10   >