Re: [Qemu-devel] [PATCH V2] net/traffic-mirror:Add traffic-mirror

2016-01-28 Thread Jason Wang
On 01/28/2016 03:44 PM, Zhang Chen wrote: > > > On 01/28/2016 01:44 PM, Jason Wang wrote: >> >> On 01/27/2016 10:40 AM, Zhang Chen wrote: >>> From: ZhangChen >>> >>> Traffic-mirror is a netfilter plugin. >>> It gives qemu the ability to copy and mirror guest's >>> net packet. we output packet to

Re: [Qemu-devel] qemu-upstream compile failure in intel_iommu.c:vtd_context_device_invalidate

2016-01-28 Thread Paolo Bonzini
On 27/01/2016 19:23, Olaf Hering wrote: > > xen.git/tools/qemu-xen-dir/hw/i386/intel_iommu.c: In function > ‘vtd_context_device_invalidate’: > xen.git/tools/qemu-xen-dir/hw/i386/intel_iommu.c:911:46: error: ‘mask’ may be > used uninitialized in this function [-Werror=maybe-uninitialized] >

Re: [Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 08:28, Roy Shterman wrote: > > Important to understand that after modifying and saving configuration of > xml with virsh edit $name_of_guest > > when i reenter the xml i can't see the iothread configuration in there. > don't understand why. > I suspect that your libvirt is too o

Re: [Qemu-devel] virtio-scsi/blk dataplane and guest memory allocation

2016-01-28 Thread Daniel P. Berrange
On Thu, Jan 28, 2016 at 09:46:26AM +0100, Paolo Bonzini wrote: > > > On 28/01/2016 08:28, Roy Shterman wrote: > > > > Important to understand that after modifying and saving configuration of > > xml with virsh edit $name_of_guest > > > > when i reenter the xml i can't see the iothread configura

Re: [Qemu-devel] Running PPC Mac OS X Tiger Apps via Qemu on El Capitan

2016-01-28 Thread Paolo Bonzini
On 27/01/2016 15:52, Gabriel Diggs wrote: > I’m trying to get my head around running a PPC App created to run on OS > X 10.4 Tiger on El Capitan 10.11.3. I came across Qemu as a possible > solution. The app in question is Traktor DJ Studio 3. It’s a Midi and > Audio intensive app so latency has t

Re: [Qemu-devel] [PATCH 2/2] blockjob: Fix hang in block_job_finish_sync

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 08:02, Fam Zheng wrote: > > This is because the aio_poll() only processes the AIO context of bs > which has no more work to do, while the main loop BH that is scheduled > for setting the job->completed flag is never processed. > > Fix this by adding a "ctx" pointer in BlockJob str

Re: [Qemu-devel] [PATCH v2] virtio-pci: call pci reset variant when guest clears status.

2016-01-28 Thread Gerd Hoffmann
> > if (vdev->status == 0) { > > -virtio_reset(vdev); > > -msix_unuse_all_vectors(&proxy->pci_dev); > > +virtio_pci_reset(DEVICE(proxy)); > > } > > > > /* Linux before 2.6.34 drives the device without enabling > > Aren't there two ca

Re: [Qemu-devel] [RFC 6/7] hw: arm: virt: register reserved IOVA region

2016-01-28 Thread Eric Auger
Hi Pavel, On 01/28/2016 08:10 AM, Pavel Fedin wrote: > Hello! > >> diff --git a/hw/arm/virt.c b/hw/arm/virt.c >> index 3839c68..7eaf8be 100644 >> --- a/hw/arm/virt.c >> +++ b/hw/arm/virt.c >> @@ -125,6 +125,7 @@ static const MemMapEntry a15memmap[] = { >> [VIRT_GPIO] = { 0x0903

Re: [Qemu-devel] [PATCH V2] net/traffic-mirror:Add traffic-mirror

2016-01-28 Thread Zhang Chen
On 01/28/2016 04:37 PM, Jason Wang wrote: On 01/28/2016 03:44 PM, Zhang Chen wrote: On 01/28/2016 01:44 PM, Jason Wang wrote: On 01/27/2016 10:40 AM, Zhang Chen wrote: From: ZhangChen Traffic-mirror is a netfilter plugin. It gives qemu the ability to copy and mirror guest's net packet. w

Re: [Qemu-devel] [PATCH V2] net/traffic-mirror:Add traffic-mirror

2016-01-28 Thread Jason Wang
On 01/28/2016 05:52 PM, Zhang Chen wrote: > > > On 01/28/2016 04:37 PM, Jason Wang wrote: >> >> On 01/28/2016 03:44 PM, Zhang Chen wrote: >>> >>> On 01/28/2016 01:44 PM, Jason Wang wrote: On 01/27/2016 10:40 AM, Zhang Chen wrote: > From: ZhangChen > > Traffic-mirror is a netfilt

Re: [Qemu-devel] qemu-upstream compile failure in intel_iommu.c:vtd_context_device_invalidate

2016-01-28 Thread Peter Maydell
On 28 January 2016 at 08:45, Paolo Bonzini wrote: > > > On 27/01/2016 19:23, Olaf Hering wrote: >> >> xen.git/tools/qemu-xen-dir/hw/i386/intel_iommu.c: In function >> ‘vtd_context_device_invalidate’: >> xen.git/tools/qemu-xen-dir/hw/i386/intel_iommu.c:911:46: error: ‘mask’ may >> be used uniniti

Re: [Qemu-devel] [RFC 6/7] hw: arm: virt: register reserved IOVA region

2016-01-28 Thread Peter Maydell
On 27 January 2016 at 13:51, Eric Auger wrote: > Registers a 16x64kB reserved iova region. Currently this iova > region is used by the kernel to map host MSI controller frames > (GICv2m, GITS_TRANSLATER). Do you mean the host kernel or the guest kernel? The host kernel should be keeping its paws

[Qemu-devel] [PATCH v1 1/5] configure: introduce --extra-libs

2016-01-28 Thread Alex Bennée
If for example you want to use the thread sanitizer you want to ensure all binaries are linked with the library: ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ --extra-cflags="-fsanitize=thread" --extra-libs="-ltsan" This is more explicit than just specifying --extra-ldflags which does not

[Qemu-devel] [PATCH v1 5/5] thread-pool: atomic fixes from tsan

2016-01-28 Thread Alex Bennée
Mark changes in thread pool state as explicitly atomic. Also in the test-thread-pool code make accesses to data.n explicitly atomic. Signed-off-by: Alex Bennée --- tests/test-thread-pool.c | 8 thread-pool.c| 12 ++-- 2 files changed, 10 insertions(+), 10 deletions(

[Qemu-devel] [PATCH v1 4/5] async.c: various atomic fixes for tsan

2016-01-28 Thread Alex Bennée
Running "make check" under ThreadSanitizer pointed to a number of potential races. - use atomic_mb_read to check bh->schedule - use atomic_set/read primitives to manipulate bh->idle The bh->idle changes are mostly for the benefit of explicit marking for tsan but the code in non-sanitised buil

[Qemu-devel] [PATCH v1 3/5] include/qemu/atomic.h: default to __atomic functions

2016-01-28 Thread Alex Bennée
The __atomic primitives have been available since GCC 4.7 and provide a richer interface for describing memory ordering requirements. As a bonus by using the primitives instead of hand-rolled functions we can use tools such as the AddressSanitizer which need the use of well defined APIs for its ana

[Qemu-devel] [PATCH v1 2/5] configure: ensure ldflags propagated to config_host

2016-01-28 Thread Alex Bennée
If for example you want to use the thread sanitizer you want to ensure all binaries have the extra linker flags applied: ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ --extra-cflags="-fsanitize=thread" --extra-ldflags="-fsanitize=thread" Or possibly: ./configure ${TARGETS} --extra-cfla

[Qemu-devel] [PATCH v1 0/5] ThreadSanitizer support

2016-01-28 Thread Alex Bennée
Hi, Here is a proper V1 of the ThreadSanitizer patches I posted earlier this week. While my motivation is to have additional tools when stress testing MTTCG these should still be generally useful. I've dropped the CFLAGS ordering patch which while useful for applying debug flags isn't needed for

Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version

2016-01-28 Thread Marc Marí
On Wed, 27 Jan 2016 12:17:27 -0500 "Kevin O'Connor" wrote: > On Wed, Jan 27, 2016 at 05:57:28PM +0100, Marc Marí wrote: > > On Wed, 27 Jan 2016 16:43:29 + > > Stefan Hajnoczi wrote: > > > > > On Tue, Jan 26, 2016 at 12:26:12PM +0100, Gerd Hoffmann wrote: > > > > On Di, 2016-01-26 at 12:

Re: [Qemu-devel] [ipxe-devel] [PATCH ipxe] build: Enable IPv6 for qemu

2016-01-28 Thread Gerd Hoffmann
Hi, > How common is it to build EFI roms, compared to building ipxe.efi or > snponly.efi? No idea. qemu is a very specific case, ipxe has drivers for the qemu nics (both virtual such as virtio-net and emulated such as rtl8139), and right now we actually build ipxe tree times (bios, efi-ia32, e

Re: [Qemu-devel] [RFC 6/7] hw: arm: virt: register reserved IOVA region

2016-01-28 Thread Eric Auger
On 01/28/2016 11:10 AM, Peter Maydell wrote: > On 27 January 2016 at 13:51, Eric Auger wrote: >> Registers a 16x64kB reserved iova region. Currently this iova >> region is used by the kernel to map host MSI controller frames >> (GICv2m, GITS_TRANSLATER). > > Do you mean the host kernel or the gue

Re: [Qemu-devel] [Xen-devel] [PATCH RESEND] fix MSI injection on Xen

2016-01-28 Thread Stefano Stabellini
On Wed, 27 Jan 2016, Konrad Rzeszutek Wilk wrote: > On Wed, Jan 13, 2016 at 02:59:09PM +, Stefano Stabellini wrote: > > On Xen MSIs can be remapped into pirqs, which are a type of event > > channels. It's mostly for the benefit of PCI passthrough devices, to > > avoid the overhead of interactin

Re: [Qemu-devel] [PATCH 0/2] dataplane: RCU dirty memory bitmap for safe RAM hotplug

2016-01-28 Thread Stefan Hajnoczi
On Mon, Jan 25, 2016 at 01:33:19PM +, Stefan Hajnoczi wrote: > Make RAM hotplug play nicely with dataplane. By RCU-protecting the dirty > memory bitmap it is possible to hotplug RAM while other threads are dirtying > guest RAM. > > See Patch 1 for the meat of the code. Patch 2 is just a fixu

Re: [Qemu-devel] [PATCH v1 5/5] thread-pool: atomic fixes from tsan

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 11:15, Alex Bennée wrote: > Mark changes in thread pool state as explicitly atomic. Also in the > test-thread-pool code make accesses to data.n explicitly atomic. > > Signed-off-by: Alex Bennée > --- > tests/test-thread-pool.c | 8 > thread-pool.c| 12 ++--

Re: [Qemu-devel] [PATCH v1 4/5] async.c: various atomic fixes for tsan

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 11:15, Alex Bennée wrote: > Running "make check" under ThreadSanitizer pointed to a number of > potential races. > > - use atomic_mb_read to check bh->schedule > - use atomic_set/read primitives to manipulate bh->idle > > The bh->idle changes are mostly for the benefit of expl

Re: [Qemu-devel] qemu io path

2016-01-28 Thread Stefan Hajnoczi
On Mon, Jan 25, 2016 at 05:01:05PM +0330, Ata Fatahi baarzi wrote: > 1- i wanna know codes which doing so.(start an io request untilio_submit > get called) > 2- can you give me th exact path of an io request from app in guest > osthrough qemu until get to real disk? You have already looked at the

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-28 Thread Michael Tokarev
Ping? 26.01.2016 12:36, Michael Tokarev wrote: > 18.01.2016 17:23, Markus Armbruster wrote: > [...] >> Applied to my monitor-next with these tweaks: >> >> diff --git a/hmp.c b/hmp.c >> index 8be03df..9c571f5 100644 >> --- a/hmp.c >> +++ b/hmp.c >> @@ -1739,7 +1739,7 @@ void hmp_sendkey(Monitor *mo

[Qemu-devel] [PATCH v19 0/9] Virtual Machine Generation ID

2016-01-28 Thread Igor Mammedov
Changes since v18: - drop MachineClass->default_props approach and make setting compat_props to work incrementaly which allows to use it for default properties as well and reduces data duplication as result of removing nesting in [PC|SPAPR]_COMPAT_* macroses. Changes since v17:

[Qemu-devel] [PATCH v19 1/9] acpi: extend ACPI interface to provide access to ACPI registers and SCI irq

2016-01-28 Thread Igor Mammedov
so that we don't have to always add proxy wrappers in piix4pm/ich9 to access ACPI regs and SCI kept in piix4pm/lcp_ich9 devices and call acpi_foo() API directly. Signed-off-by: Igor Mammedov --- hw/acpi/piix4.c | 17 + hw/isa/lpc_ich9.c| 1

[Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-01-28 Thread Igor Mammedov
Based on Microsoft's specifications (paper can be downloaded from http://go.microsoft.com/fwlink/?LinkId=260709, easily found by "Virtual Machine Generation ID" keywords), add a PCI device with corresponding description in SSDT ACPI table. The GUID is set using "vmgenid.guid" property or a corresp

[Qemu-devel] [PATCH v19 6/9] qmp/hmp: add set-vm-generation-id commands

2016-01-28 Thread Igor Mammedov
Add set-vm-generation-id command to set Virtual Machine Generation ID counter. QMP command example: { "execute": "set-vm-generation-id", "arguments": { "guid": "324e6eaf-d1d1-4bf6-bf41-b9bb6c91fb87" } } HMP command example: set-vm-generation-id 324e6e

[Qemu-devel] [PATCH v19 4/9] tests: add a unit test for the vmgenid device.

2016-01-28 Thread Igor Mammedov
* test that guest can read GUID provided on CLI from buffer accessing it at HPA which is available via 'vmgid-addr' property when device is inintialized. * test setting GUID at runtime and check that it's updated at expected HPA. Signed-off-by: Gal Hammer Signed-off-by: Igor Mammedov ---

[Qemu-devel] [PATCH v19 2/9] docs: vm generation id device's description

2016-01-28 Thread Igor Mammedov
From: Gal Hammer Signed-off-by: Gal Hammer Signed-off-by: Igor Mammedov Reviewed-by: Eric Blake --- docs/specs/vmgenid.txt | 36 1 file changed, 36 insertions(+) create mode 100644 docs/specs/vmgenid.txt diff --git a/docs/specs/vmgenid.txt b/docs/specs/v

[Qemu-devel] [PATCH v19 9/9] pc/q53: by default put vmgenid device as an function of ISA bridge

2016-01-28 Thread Igor Mammedov
it will save a PCI slot that would be used otherwise. Suggested-by: Michael S. Tsirkin Signed-off-by: Igor Mammedov --- hw/i386/pc_piix.c | 10 ++ hw/i386/pc_q35.c | 9 + include/hw/i386/ich9.h | 3 ++- include/hw/i386/pc.h | 1 + 4 files changed, 22 insertions(+

[Qemu-devel] [PATCH v19 8/9] pc: put PIIX3 in slot 1 explicitly and cleanup functions assignment

2016-01-28 Thread Igor Mammedov
currently slot for PIIX3 bridge is selected dynamically but it's always in slot 1 for existing machine types. However it's easy to regress if another PCI device were added before PIIX3 is created and also requires passing around devfn of the created bridge. Replace dynamic slot assignment with a st

[Qemu-devel] [PATCH v19 5/9] qmp/hmp: add query-vm-generation-id and 'info vm-generation-id' commands

2016-01-28 Thread Igor Mammedov
Add commands to query Virtual Machine Generation ID counter. QMP command example: { "execute": "query-vm-generation-id" } HMP command example: info vm-generation-id Signed-off-by: Igor Mammedov --- v18: - add a new QMP type GuidInfo instead of reusing UuidInfo Eric Blake --- hmp

[Qemu-devel] [PATCH v19 7/9] machine: add properties to compat_props incrementaly

2016-01-28 Thread Igor Mammedov
Switch to adding compat properties incrementaly instead of completly overwriting compat_props per machine type. That removes data duplication which we have due to nested [PC|SPAPR]_COMPAT_* macros. It also allows to set default device properties from default foo_machine_options() hook, which will

Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version

2016-01-28 Thread Stefan Hajnoczi
On Thu, Jan 28, 2016 at 11:18:07AM +0100, Marc Marí wrote: > On Wed, 27 Jan 2016 12:17:27 -0500 > "Kevin O'Connor" wrote: > > > On Wed, Jan 27, 2016 at 05:57:28PM +0100, Marc Marí wrote: > > > On Wed, 27 Jan 2016 16:43:29 + > > > Stefan Hajnoczi wrote: > > > > > > > On Tue, Jan 26, 2016 a

Re: [Qemu-devel] [PATCH 2/2] blockjob: Fix hang in block_job_finish_sync

2016-01-28 Thread Fam Zheng
On Thu, 01/28 10:10, Paolo Bonzini wrote: > > > On 28/01/2016 08:02, Fam Zheng wrote: > > > > This is because the aio_poll() only processes the AIO context of bs > > which has no more work to do, while the main loop BH that is scheduled > > for setting the job->completed flag is never processed.

Re: [Qemu-devel] [PATCH v1 3/5] include/qemu/atomic.h: default to __atomic functions

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 11:15, Alex Bennée wrote: > +/* atomic_mb_read/set semantics map Java volatile variables. They are > + * less expensive on some platforms (notably POWER & ARM) than fully > + * sequentially consistent operations. > + * > + * As long as they are used as paired operations they are saf

Re: [Qemu-devel] [libvirt] Call for mentors and project ideas for Google Summer of Code 2016

2016-01-28 Thread Stefan Hajnoczi
On Wed, Jan 27, 2016 at 12:06:22PM +0100, Michal Privoznik wrote: > On 27.01.2016 11:56, Stefan Hajnoczi wrote: > > On Tue, Jan 26, 2016 at 11:13:16AM +0100, Michal Privoznik wrote: > >> On 25.01.2016 18:28, Stefan Hajnoczi wrote: > >>> The QEMU wiki page for Google Summer of Code 2016 is now avail

[Qemu-devel] [PATCH v2 0/2] blockjob: Fix dead loop with block_job_finish_sync on dataplane disks

2016-01-28 Thread Fam Zheng
v2: Fix the migration case. [Paolo] Fam Zheng (2): blockjob: Rename block_job_defer_to_main_loop blockjob: Fix hang in block_job_finish_sync block/backup.c| 2 +- block/commit.c| 2 +- block/mirror.c| 2 +- block/stream.c| 2 +- blockjob.c

[Qemu-devel] [PATCH v2 2/2] blockjob: Fix hang in block_job_finish_sync

2016-01-28 Thread Fam Zheng
With a mirror job running on a virtio-blk dataplane disk, sending "q" to HMP will cause a dead loop in block_job_finish_sync. This is because the aio_poll() only processes the AIO context of bs which has no more work to do, while the main loop BH that is scheduled for setting the job->completed fl

[Qemu-devel] [PATCH v2 1/2] blockjob: Rename block_job_defer_to_main_loop

2016-01-28 Thread Fam Zheng
The next patch will make this function more restrictive than it is now, rename it and update comment to reflect the change. Signed-off-by: Fam Zheng --- block/backup.c| 2 +- block/commit.c| 2 +- block/mirror.c| 2 +- block/stream.c| 2 +- blo

Re: [Qemu-devel] [PATCH 0/2] dataplane: RCU dirty memory bitmap for safe RAM hotplug

2016-01-28 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 28/01/2016 11:40, Stefan Hajnoczi wrote: > Paolo, will you take this through your tree/dataplane branch? > > I think that would work well since your vring.c removal relies on > the memory API being thread-safe. Yes, I'll ensure this gets in b

Re: [Qemu-devel] [PATCH] memory: add early bail out from cpu_physical_memory_set_dirty_range

2016-01-28 Thread Stefan Hajnoczi
On Tue, Jan 26, 2016 at 05:59:40PM +0100, Paolo Bonzini wrote: > This condition is true in the common case, so we can cut out the body of > the function. In addition, this makes it easier for the compiler to do > at least partial inlining, even if it decides that fully inlining the > function is u

[Qemu-devel] [PULL 08/10] s390x/css: fix control flags during csch

2016-01-28 Thread Cornelia Huck
From: Halil Pasic >From the beginning, css support contained an error in csch handling: instead of setting the clear bit in the function control bits twice, we need to set the clear pending bit in the activity control bits. Let's fix this. Cc: qemu-sta...@nongnu.org Reviewed-by: Cornelia Huck S

[Qemu-devel] [PULL 01/10] s390x/skeys: Fix instance and class size

2016-01-28 Thread Cornelia Huck
From: Christian Borntraeger fix a typo that messes up instance and class size. Signed-off-by: Christian Borntraeger Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck --- hw/s390x/s390-skeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/s390-skeys.c

[Qemu-devel] [PULL 02/10] s390x/machine: make addon register fields static

2016-01-28 Thread Cornelia Huck
From: Christian Borntraeger No need to have them as global symbol. Acked-by: Cornelia Huck Signed-off-by: Christian Borntraeger Signed-off-by: Cornelia Huck --- target-s390x/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-s390x/machine.c b/target-s390

[Qemu-devel] [PULL 10/10] s390x: s390_cpu_get_phys_page_debug has to return -1

2016-01-28 Thread Cornelia Huck
From: David Hildenbrand If translation fails, we have to return -1. For now, we would simply return the value last stored to raddr (if any). This way, reading invalid memory via gdb will return values, although it shouldn't. Reviewed-by: Christian Borntraeger Signed-off-by: David Hildenbrand

[Qemu-devel] [PULL 07/10] watchdog/diag288: don't reset for action=none|debug|pause

2016-01-28 Thread Cornelia Huck
From: Bo Tu If the watchdog expires and the guest is not notified (NONE, DEBUG, PAUSE), we must not reset the watchdog device, otherwise watchdog_ping() and watchdog_stop() will fail when triggered by the guest. This reset behavior matches to the z/VM behavior when a custom command is to be execu

[Qemu-devel] [PULL 06/10] watchdog: introduction of get_watchdog_action

2016-01-28 Thread Cornelia Huck
From: Bo Tu Add get_watchdog_action(void) to allow access to the configured action. Reviewed-by: David Hildenbrand Signed-off-by: Bo Tu Signed-off-by: Cornelia Huck --- hw/watchdog/watchdog.c| 14 +- include/sysemu/watchdog.h | 10 ++ 2 files changed, 15 insertions(+)

[Qemu-devel] [PULL 03/10] s390x/sclp: add device to the sysbus in sclp_realize

2016-01-28 Thread Cornelia Huck
From: David Hildenbrand The init of a device should have no side effects. Therefore move registering of the event facility into the realize function, so multiple instances of the SCLP device can be created e.g. for introspection. Add some more detail as to why we have to add it to the sysbus at

[Qemu-devel] [PULL 00/10] next round of s390x patches

2016-01-28 Thread Cornelia Huck
The following changes since commit 39c36a0573d9307d68c0c3336b48e6351ffabc06: Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20160126-2' into staging (2016-01-26 17:25:11 +) are available in the git repository at: git://github.com/cohuck/qemu tags/s390x-20160128

Re: [Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-01-28 Thread Michael S. Tsirkin
On Thu, Jan 28, 2016 at 11:54:25AM +0100, Igor Mammedov wrote: > Based on Microsoft's specifications (paper can be > downloaded from http://go.microsoft.com/fwlink/?LinkId=260709, > easily found by "Virtual Machine Generation ID" keywords), > add a PCI device with corresponding description in > SSD

[Qemu-devel] [PULL 05/10] s390x: fix generation of event information crw

2016-01-28 Thread Cornelia Huck
From: Song Shan Gong Only one channel report word (crw) may be pending if there is event-information pending. This patch introduces a bool-type field 'sei_pending' for the channel subsystem, which indicates whether there are pending events. It is set when event information is made pending and th

Re: [Qemu-devel] [PATCH v1 2/5] configure: ensure ldflags propagated to config_host

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 11:15, Alex Bennée wrote: > diff --git a/configure b/configure > index bd29ba7..148b79a 100755 > --- a/configure > +++ b/configure > @@ -5871,7 +5871,7 @@ if test "$target_linux_user" = "yes" -o > "$target_bsd_user" = "yes" ; then >ldflags="$ldflags $textseg_ldflags" > fi >

Re: [Qemu-devel] [PATCH v1 1/5] configure: introduce --extra-libs

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 11:15, Alex Bennée wrote: > If for example you want to use the thread sanitizer you want to ensure all > binaries are linked with the library: > > ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ > --extra-cflags="-fsanitize=thread" --extra-libs="-ltsan" > > This is more expl

[Qemu-devel] [PULL 09/10] gdb: provide the name of the architecture in the target.xml

2016-01-28 Thread Cornelia Huck
From: David Hildenbrand This patch provides the name of the architecture in the target.xml if available. This allows the remote gdb to detect the target architecture on its own - so there is no need to specify it manually (e.g. if gdb is started without a binary) using "set arch *arch_name*". T

[Qemu-devel] [PULL 04/10] s390x/ioinst: set type and len for SEI response

2016-01-28 Thread Cornelia Huck
From: Pierre Morel If no event information is pending, the return code is set to 0x0005 and the length of the response is set to 8 bytes. Signed-off-by: Pierre Morel Reviewed-by: Cornelia Huck Reviewed-by: Song Shan Gong Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck --- target-s39

Re: [Qemu-devel] [PATCH] e1000: eliminate infinite loops on out-of-bounds transfer start

2016-01-28 Thread Laszlo Ersek
On 01/28/16 06:47, Jason Wang wrote: > > > On 01/28/2016 02:35 AM, Laszlo Ersek wrote: >> Hello Jason, >> >> On 01/22/16 07:15, Jason Wang wrote: >>> >>> On 01/22/2016 02:11 PM, Michael Tokarev wrote: 22.01.2016 06:09, Jason Wang wrote: > On 01/19/2016 09:17 PM, Laszlo Ersek wrote: >

Re: [Qemu-devel] [PATCH v1 2/5] configure: ensure ldflags propagated to config_host

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 11:15, Alex Bennée wrote: > index d0de2d4..d30532f 100644 > --- a/Makefile > +++ b/Makefile > @@ -329,9 +329,9 @@ qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) > $(QEMU_GA_MSI) > endif > > ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) > - $(call LINK, $^) > + $(call

Re: [Qemu-devel] [Qemu-block] [PATCH] block: Remove unused struct definition BlockFinishData

2016-01-28 Thread Stefan Hajnoczi
On Thu, Jan 28, 2016 at 11:57:13AM +0800, Fam Zheng wrote: > Unused since 94db6d2d3. > > Signed-off-by: Fam Zheng > --- > blockjob.c | 8 > 1 file changed, 8 deletions(-) Reviewed-by: Stefan Hajnoczi signature.asc Description: PGP signature

Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version

2016-01-28 Thread Marc Marí
On Wed, 27 Jan 2016 19:14:54 -0500 "Kevin O'Connor" wrote: > On Mon, Jan 25, 2016 at 02:17:48PM +0100, Marc Marí wrote: > > This optionrom is based on linuxboot.S. > > Hi Marc, > > Out of curiousity, how does the timing with this option rom compare to > the previous SeaBIOS patches that imple

Re: [Qemu-devel] [PATCH v2] virtio-pci: call pci reset variant when guest clears status.

2016-01-28 Thread Michael S. Tsirkin
On Thu, Jan 28, 2016 at 10:33:25AM +0100, Gerd Hoffmann wrote: > > > if (vdev->status == 0) { > > > -virtio_reset(vdev); > > > -msix_unuse_all_vectors(&proxy->pci_dev); > > > +virtio_pci_reset(DEVICE(proxy)); > > > } > > > > > > /* Li

Re: [Qemu-devel] [PATCH v1 1/5] configure: introduce --extra-libs

2016-01-28 Thread Alex Bennée
Paolo Bonzini writes: > On 28/01/2016 11:15, Alex Bennée wrote: >> If for example you want to use the thread sanitizer you want to ensure all >> binaries are linked with the library: >> >> ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ >> --extra-cflags="-fsanitize=thread" --extra-libs="-

Re: [Qemu-devel] [PATCH 0/2] microblaze: clean includes

2016-01-28 Thread Peter Maydell
On 27 January 2016 at 20:04, Edgar E. Iglesias wrote: > On Tue, Jan 26, 2016 at 06:05:29PM +, Peter Maydell wrote: >> I'm sending this small series separately because cleaning >> the microblaze files' use of includes requires a manual >> code fix to disas/microblaze.c. That file manually defin

Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] blockjob: Rename block_job_defer_to_main_loop

2016-01-28 Thread Stefan Hajnoczi
On Thu, Jan 28, 2016 at 03:02:50PM +0800, Fam Zheng wrote: > diff --git a/include/block/blockjob.h b/include/block/blockjob.h > index d84ccd8..de59fc2 100644 > --- a/include/block/blockjob.h > +++ b/include/block/blockjob.h > @@ -393,18 +393,20 @@ BlockErrorAction block_job_error_action(BlockJob *j

Re: [Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-01-28 Thread Igor Mammedov
On Thu, 28 Jan 2016 13:13:04 +0200 "Michael S. Tsirkin" wrote: > On Thu, Jan 28, 2016 at 11:54:25AM +0100, Igor Mammedov wrote: > > Based on Microsoft's specifications (paper can be > > downloaded from http://go.microsoft.com/fwlink/?LinkId=260709, > > easily found by "Virtual Machine Generation

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] blockjob: Fix hang in block_job_finish_sync

2016-01-28 Thread Stefan Hajnoczi
On Thu, Jan 28, 2016 at 10:10:06AM +0100, Paolo Bonzini wrote: > > > On 28/01/2016 08:02, Fam Zheng wrote: > > > > This is because the aio_poll() only processes the AIO context of bs > > which has no more work to do, while the main loop BH that is scheduled > > for setting the job->completed fla

Re: [Qemu-devel] [PATCH v3] vfio/common: Check iova with limit not with size

2016-01-28 Thread Pierre Morel
On 01/27/2016 06:43 PM, Alex Williamson wrote: On Wed, 2016-01-27 at 10:28 +0100, Pierre Morel wrote: On 01/26/2016 06:00 PM, Alex Williamson wrote: On Tue, 2016-01-26 at 15:51 +0100, Pierre Morel wrote: On 01/22/2016 11:19 PM, Alex Williamson wrote: On Fri, 2016-01-22 at 15:14 -0700, Ale

Re: [Qemu-devel] [PATCH 1/1] Protect stderr from non-blocking mode

2016-01-28 Thread Stefan Hajnoczi
On Thu, Jan 28, 2016 at 03:18:23PM +1100, Sam Bobroff wrote: > On Linux, if QEMU is run from a shell with -d to enable debug logging > but without directing it to a file (e.g. -D is not used, and > qemu_logfile is set to stderr), and no shell redirection is used, it > is possible for log messages t

Re: [Qemu-devel] [PATCH] block: Remove unused struct definition BlockFinishData

2016-01-28 Thread Kevin Wolf
Am 28.01.2016 um 04:57 hat Fam Zheng geschrieben: > Unused since 94db6d2d3. > > Signed-off-by: Fam Zheng Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] QCOW rebases on running VMs

2016-01-28 Thread Alex Bligh
On 27 Jan 2016, at 20:47, Eric Blake wrote: >> >> >> If not, do I need to use QMP magic instead? > > Yes. block-commit is your friend. Sadly what I need is block-stream to an intermediate layer (as I want to merge in the other direction); I don't think that proposal was ever implemented. ht

Re: [Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-01-28 Thread Michael S. Tsirkin
On Thu, Jan 28, 2016 at 01:03:16PM +0100, Igor Mammedov wrote: > On Thu, 28 Jan 2016 13:13:04 +0200 > "Michael S. Tsirkin" wrote: > > > On Thu, Jan 28, 2016 at 11:54:25AM +0100, Igor Mammedov wrote: > > > Based on Microsoft's specifications (paper can be > > > downloaded from http://go.microsoft.

Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] blockjob: Rename block_job_defer_to_main_loop

2016-01-28 Thread Fam Zheng
On Thu, 01/28 11:53, Stefan Hajnoczi wrote: > On Thu, Jan 28, 2016 at 03:02:50PM +0800, Fam Zheng wrote: > > diff --git a/include/block/blockjob.h b/include/block/blockjob.h > > index d84ccd8..de59fc2 100644 > > --- a/include/block/blockjob.h > > +++ b/include/block/blockjob.h > > @@ -393,18 +393,2

Re: [Qemu-devel] [PATCH v5 1/4] Provide support for the CUSE TPM

2016-01-28 Thread Daniel P. Berrange
On Wed, Jan 20, 2016 at 10:31:56AM -0500, Stefan Berger wrote: > "Daniel P. Berrange" wrote on 01/20/2016 10:00:41 > AM: > > > Subject: Re: [Qemu-devel] [PATCH v5 1/4] Provide support for the CUSE > > > The CUSE TPM and associated tools can be found here: > > > > > > https://github.com/stefanb

Re: [Qemu-devel] [PATCH v9 34/37] qapi: Simplify semantics of visit_next_list()

2016-01-28 Thread Markus Armbruster
Eric Blake writes: > We have two uses of list visits in the entire code base: one in > spapr_drc (which completely avoids visit_next_list(), feeding in > integers from a different source than uint8List), and one in > qapi-visit.py (that is, all other list visitors are generated > in qapi-visit.c,

Re: [Qemu-devel] [RFC PATCH 0/3] (Resend) TranslationBlock annotation mechanism

2016-01-28 Thread Bastian Koppelmann
Hi Lluis, On 01/27/2016 07:54 PM, Lluís Vilanova wrote: > There is this modified version I wrote [1], which precisely provides a plugin > infrastructure to attach callbacks into guest code events (a binary > instrumentation framework based on QEMU). At the time, the discussion resolved > that a fu

Re: [Qemu-devel] [PULL 00/10] next round of s390x patches

2016-01-28 Thread Peter Maydell
ble in the git repository at: > > git://github.com/cohuck/qemu tags/s390x-20160128 > > for you to fetch changes up to 234779a2b9141d9386289ba5ed86c9d617567646: > > s390x: s390_cpu_get_phys_page_debug has to return -1 (2016-01-27 15:34:48 > +0100) > > --

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/13] cuda: misc fixes and cleanups

2016-01-28 Thread Hervé Poussineau
Le 28/01/2016 02:45, BALATON Zoltan a écrit : On Wed, 27 Jan 2016, Hervé Poussineau wrote: Unfortunately, Finnix doesn't try to access I2C bus, not even to initialize it. I suppose it is because OpenBIOS doesn't describe the I2C bus in the device tree... The kernel in Finnix seems to have a

Re: [Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-01-28 Thread Laszlo Ersek
On 01/28/16 12:13, Michael S. Tsirkin wrote: > On Thu, Jan 28, 2016 at 11:54:25AM +0100, Igor Mammedov wrote: >> Based on Microsoft's specifications (paper can be >> downloaded from http://go.microsoft.com/fwlink/?LinkId=260709, >> easily found by "Virtual Machine Generation ID" keywords), >> add a

Re: [Qemu-devel] [PATCH 0/3] scsi: Add support for LSI SAS1068 (mptsas) device

2016-01-28 Thread Shmulik Ladkani
Hi Paolo, Seems patch 2/3 didn't arrive to the mailing list. Regards, Shmulik

Re: [Qemu-devel] [PATCH v19 7/9] machine: add properties to compat_props incrementaly

2016-01-28 Thread Eduardo Habkost
On Thu, Jan 28, 2016 at 11:58:08AM +0100, Igor Mammedov wrote: > Switch to adding compat properties incrementaly instead of > completly overwriting compat_props per machine type. > That removes data duplication which we have due to nested > [PC|SPAPR]_COMPAT_* macros. > > It also allows to set def

[Qemu-devel] [PATCH 2/2] kvm/x86: Hyper-V tsc page setup

2016-01-28 Thread Paolo Bonzini
From: Andrey Smetanin Lately tsc page was implemented but filled with empty values. This patch setup tsc page scale and offset based on vcpu tsc, tsc_khz and HV_X64_MSR_TIME_REF_COUNT value. The valid tsc page drops HV_X64_MSR_TIME_REF_COUNT msr reads count to zero which potentially improves pe

Re: [Qemu-devel] [ipxe-devel] [PATCH ipxe] build: Enable IPv6 for qemu

2016-01-28 Thread Tore Anderson
* Michael Brown > ROM image size concerns. > > I've been thinking for some time now that it would be useful to have > a "minimal" configuration used for building real BIOS option ROM > images and a "normal" configuration for everything else > (undionly.kpxe, ipxe.efi, UEFI ROMs, qemu ROMs, etc).

[Qemu-devel] [PATCH] scsi-generic: grab device and port SAS addresses from backend

2016-01-28 Thread Paolo Bonzini
This lets a SAS adapter expose them through its own configuration mechanism. Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-disk.c| 1 + hw/scsi/scsi-generic.c | 92 ++ include/hw/scsi/scsi.h | 1 + 3 files changed, 94 insertions(+) diff --gi

[Qemu-devel] [Bug 1538541] Re: qcow2 rejects request to use preallocation with backing file

2016-01-28 Thread Kevin Wolf
The idea that qcow2 could just reserve enough space that it will never need any additional clusters stands on somewhat shaky ground anyway. You can count in metadata such as refcount tables/blocks and the L1/L2 table for an image with the full virtual disk size used. This doesn't cover things like

Re: [Qemu-devel] [PATCH 0/3] scsi: Add support for LSI SAS1068 (mptsas) device

2016-01-28 Thread Paolo Bonzini
On 28/01/2016 14:50, Shmulik Ladkani wrote: > Hi Paolo, > > Seems patch 2/3 didn't arrive to the mailing list. Sent now, http://permalink.gmane.org/gmane.comp.emulators.qemu/390040

[Qemu-devel] [PATCH 2/3] scsi-generic: grab device and port SAS addresses from backend

2016-01-28 Thread Paolo Bonzini
This lets a SAS adapter expose them through its own configuration mechanism. Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-disk.c| 1 + hw/scsi/scsi-generic.c | 92 ++ include/hw/scsi/scsi.h | 1 + 3 files changed, 94 insertions(+) diff --gi

Re: [Qemu-devel] [RFC 0/1] arm: Setup EL1 and EL2 in AArch64 mode for 64bit Linux boots

2016-01-28 Thread Peter Maydell
On 27 January 2016 at 23:42, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > Hi, > > I've seen some regressions in my test runs lately when enabling > EL2 and EL3. It turns out we are not setting RW when booting 64bit > Linux kernels. > > In the long run, I'm not sure if this does the ri

[Qemu-devel] [PATCH v8 3/4] firmware: create directory hierarchy for sysfs fw_cfg entries

2016-01-28 Thread Gabriel L. Somlo
From: Gabriel Somlo Each fw_cfg entry of type "file" has an associated 56-char, nul-terminated ASCII string which represents its name. While the fw_cfg device doesn't itself impose any specific naming convention, QEMU developers have traditionally used path name semantics (i.e. "etc/acpi/rsdp") t

[Qemu-devel] [PATCH v3 2/3] .travis.yml: run make check for all matrix targets

2016-01-28 Thread Alex Bennée
We only ran make check once before it used to be an unreliable target. It was only a stop gap measure and we should be able to revert it now. This also stops us needing a large all-MMU build. We disable "make check" for a couple of the extra config targets which are currently broken. Signed-off-b

[Qemu-devel] [PATCH v3 1/3] .travis.yml: migrate to container builds

2016-01-28 Thread Alex Bennée
This moves the Travis tests from the legacy VM infrastructure (which only seems to run 5-6 jobs at once) to the new container based approach. The principle difference is there is no sudo in the containers so all packages are installed using the apt add-on. This means one of the build combinations

[Qemu-devel] [PATCH v3 3/3] .travis.yml: enable each of the co-routine backends

2016-01-28 Thread Alex Bennée
We disable "make check" for the gthread backend as it is broken. Signed-off-by: Alex Bennée --- .travis.yml | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 16be23f..021eec7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -94,6 +94

[Qemu-devel] [PATCH v3 0/3] Travis updates

2016-01-28 Thread Alex Bennée
Hi, The first patch has been reviewed and signed off. Long term I think it is worth applying but it look like the performance increase it negligible compared to the old style VM builds at the moment. I suspect this may be because the new infrastructure is under more load as more projects have migr

[Qemu-devel] [PATCH v8 4/4] devicetree: update documentation for fw_cfg ARM bindings

2016-01-28 Thread Gabriel L. Somlo
From: Gabriel Somlo Remove fw_cfg hardware interface details from Documentation/devicetree/bindings/arm/fw-cfg.txt, and replace them with a pointer to the authoritative documentation in the QEMU source tree. Signed-off-by: Gabriel Somlo Cc: Laszlo Ersek Acked-by: Rob Herring Reviewed-by: Lasz

[Qemu-devel] [PATCH v8 0/4] SysFS driver for QEMU fw_cfg device

2016-01-28 Thread Gabriel L. Somlo
From: "Gabriel Somlo" Allow access to QEMU firmware blobs, passed into the guest VM via the fw_cfg device, through SysFS entries. Blob meta-data (e.g. name, size, and fw_cfg key), as well as the raw binary blob data may be accessed. The SysFS access location is /sys/firmware/qemu_fw_cfg/... and

[Qemu-devel] [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-01-28 Thread Gabriel L. Somlo
From: Gabriel Somlo Make fw_cfg entries of type "file" available via sysfs. Entries are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders named after each entry's selector key. Filename, selector value, and size read-only attributes are included for each entry. Also, a "raw" attribute all

[Qemu-devel] [Bug 1538541] Re: qcow2 rejects request to use preallocation with backing file

2016-01-28 Thread Daniel Berrange
Preallocating the understanding image file at the management layer though means that the mgmt tool has to understand the full details of the qcow2 file format. The mgmt layer knows it created a 20 GB qcow2 file, but does not know that once you have stored 20 GB of user data in it, it will actually

  1   2   3   >