[Qemu-devel] [PATCH 2/2] hda-codec: make mixemu selectable at runtime

2013-08-27 Thread Bandan Das
Define PARAM so that we have two versions of the "desc_codec and family" structs. Add a property called "mixer" whose default value depends on whether CONFIG_MIXEMU is defined or not which will help us call the appropriate instance init functions. Signed-off-by: Bandan Da

[Qemu-devel] [PATCH 1/2] hda-codec: refactor common definitions into a header file

2013-08-27 Thread Bandan Das
Move common defines and structs to a header file. We will then include these twice in hda-codec.c - a version with mixer enabled and another with not enabled. Signed-off-by: Bandan Das --- hw/audio/hda-codec-common.h | 427 hw/audio/hda-codec.c

[Qemu-devel] [PATCH 0/2] Make mixer emulation configurable at runtime

2013-08-27 Thread Bandan Das
" although this is not part of this change. Bandan Das (2): hda-codec: refactor common definitions into a header file hda-codec: make mixemu selectable at runtime hw/audio/hda-codec-common.h | 433 hw/audio/hda-

Re: [Qemu-devel] [PATCH 0/2] Make mixer emulation configurable at runtime

2013-08-28 Thread Bandan Das
Markus Armbruster writes: > Bandan Das writes: > >> Currently, hda-codec mixer emulation can only be enabled by using the >> "--enable-mixemu" option to configure at compile time. These patches add >> the option to make it configurable at runtime as well.

Re: [Qemu-devel] Use-after-free during unrealize in system_reset

2014-06-09 Thread Bandan Das
Paolo Bonzini writes: > Il 08/06/2014 12:46, Michael S. Tsirkin ha scritto: >> Tested-by: Michael S. Tsirkin > > You probably tested the reversal, actually. :) > > Actually, there is a reason for it. "Unassembling" the device > (unparent) should come after "powering it down" (unrealize). Yes,

Re: [Qemu-devel] Use-after-free during unrealize in system_reset

2014-06-11 Thread Bandan Das
Andreas Färber writes: > Am 09.06.2014 19:02, schrieb Bandan Das: >> Paolo Bonzini writes: >> >>> Il 08/06/2014 12:46, Michael S. Tsirkin ha scritto: >>>> Tested-by: Michael S. Tsirkin >>> >>> You probably tested the reversal, a

[Qemu-devel] [PATCH] pci-assign: add a way to blacklist loading of unstable roms

2014-04-04 Thread Bandan Das
commit 4b9430294ed added an option in vfio to blacklist roms that are known to be unstable. Add a similar mechanism for pci-assign as well. The default behavior is to disable loading but can be overriden by specifying rombar or romfile Signed-off-by: Bandan Das --- Note: ignored checkpatch

Re: [Qemu-devel] [PATCH] pci-assign: add a way to blacklist loading of unstable roms

2014-04-05 Thread Bandan Das
Alex Williamson writes: > On Fri, 2014-04-04 at 18:49 -0400, Bandan Das wrote: >> commit 4b9430294ed added an option in vfio to blacklist >> roms that are known to be unstable. Add a similar mechanism >> for pci-assign as well. The default behavior is to disable >> l

[Qemu-devel] [PATCH 2/2] vfio: Do not reattempt a failed rom read

2014-01-14 Thread Bandan Das
table behavior Signed-off-by: Bandan Das --- hw/misc/vfio.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index e5b2826..c500067 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -191,6 +191,7 @@ typedef struct VFIODevice { bool ha

[Qemu-devel] [PATCH 0/2] vfio: Warn on failure to read device rom

2014-01-14 Thread Bandan Das
Minor changes to print a message on the monitor console in case of a rom read failure. Please see individual patches for more details. Bandan Das (2): vfio: warn if host device rom can't be read vfio: Do not reattempt a failed rom read hw/misc/vfio.c | 12 +++- in

[Qemu-devel] [PATCH 1/2] vfio: warn if host device rom can't be read

2014-01-14 Thread Bandan Das
ilure or option rom loading has been disabled from the device boot menu (among other reasons). Signed-off-by: Bandan Das --- hw/misc/vfio.c | 7 +++ include/qemu/error-report.h | 20 2 files changed, 27 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/v

Re: [Qemu-devel] [PATCH 1/2] vfio: warn if host device rom can't be read

2014-01-14 Thread Bandan Das
Ccing Markus for the *_once macros Alex Williamson writes: > On Tue, 2014-01-14 at 21:45 +0530, Bandan Das wrote: >> If the device rom can't be read, report an error to the >> user. The guest might try to read the rom contents more than >> once, so introduce macros

[Qemu-devel] [PATCH v2 2/2] vfio: Do not reattempt a failed rom read

2014-01-15 Thread Bandan Das
avior Signed-off-by: Bandan Das --- v2: Check for vdev->rom first followed by the rom_read_failed flag hw/misc/vfio.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index d2e68e2..5ed9cbe 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c @@ -191,

[Qemu-devel] [PATCH v2 1/2] vfio: warn if host device rom can't be read

2014-01-15 Thread Bandan Das
If the device rom can't be read, report an error to the user. This alerts the user that the device has a bad state that is causing rom read failure or option rom loading has been disabled from the device boot menu (among other reasons). Signed-off-by: Bandan Das --- v2: Removed the macr

[Qemu-devel] [PATCH v2 0/2] vfio: Warn on failure to read device rom

2014-01-15 Thread Bandan Das
Minor changes to print a message on the monitor console in case of a rom read failure. Please see individual patches for more details. Bandan Das (2): vfio: warn if host device rom can't be read vfio: Do not reattempt a failed rom read hw/misc/vfio.c | 13 + 1 file change

[Qemu-devel] vfio: blacklist loading of unstable roms

2014-02-19 Thread Bandan Das
rtain cases such as a firmware upgrade, the user might want to override this blacklisting behavior and can do so by running with rombar = 1. Same reasoning applies to running with romfile. Signed-off-by: Bandan Das --- hw/misc/vfio.c | 63 ++ h

Re: [Qemu-devel] vfio: blacklist loading of unstable roms

2014-02-19 Thread Bandan Das
Alex Williamson writes: > On Wed, 2014-02-19 at 11:12 -0500, Bandan Das wrote: >> Certain cards such as the Broadcom BCM57810 have rom quirks >> that exhibit unstable system behavior duing device assignment. In >> the particular case of 57810, rom execution hangs and if

Re: [Qemu-devel] vfio: blacklist loading of unstable roms

2014-02-19 Thread Bandan Das
Alex Williamson writes: > On Wed, 2014-02-19 at 13:58 -0500, Bandan Das wrote: >> Alex Williamson writes: >> >> > On Wed, 2014-02-19 at 11:12 -0500, Bandan Das wrote: >> >> Certain cards such as the Broadcom BCM57810 have rom quirks >> >> th

[Qemu-devel] [PATCH 0/2 v2] vfio: blacklist loading of unstable roms

2014-02-19 Thread Bandan Das
vfio_pci_size_rom() Bandan Das (2): pci: change default value of rom_bar to 2 vfio: blacklist loading of unstable roms hw/misc/vfio.c | 58 ++ hw/pci/pci.c | 7 ++- 2 files changed, 64 insertions(+), 1 deletion(-) -- 1.8.3.1

[Qemu-devel] [PATCH 2/2 v2] vfio: blacklist loading of unstable roms

2014-02-19 Thread Bandan Das
rom for such cards unless the user specifies a romfile or rombar=1 on the cmd line Signed-off-by: Bandan Das --- hw/misc/vfio.c | 58 ++ 1 file changed, 58 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 8db182f..58f348e

[Qemu-devel] [PATCH 1/2 v2] pci: change default value of rom_bar to 2

2014-02-19 Thread Bandan Das
The following patch depends on the value of rom_bar to determine rom blacklist behavior. Existing code shouldn't be affected by changing the default value of rom_bar since all relevant decisions only rely on whether rom_bar is zero or non-zero. Signed-off-by: Bandan Das --- hw/pci/pci.

Re: [Qemu-devel] [PATCH 1/2 v2] pci: change default value of rom_bar to 2

2014-02-19 Thread Bandan Das
Alex Williamson writes: > On Wed, 2014-02-19 at 15:20 -0500, Bandan Das wrote: >> The following patch depends on the value of rom_bar to >> determine rom blacklist behavior. Existing code shouldn't >> be affected by changing the default value of rom_bar since >>

Re: [Qemu-devel] [PATCH 1/2 v2] pci: change default value of rom_bar to 2

2014-02-20 Thread Bandan Das
"Michael S. Tsirkin" writes: > On Wed, Feb 19, 2014 at 03:20:54PM -0500, Bandan Das wrote: >> The following patch depends on the value of rom_bar to >> determine rom blacklist behavior. Existing code shouldn't >> be affected by changing the default va

Re: [Qemu-devel] [PATCH 2/2 v2] vfio: blacklist loading of unstable roms

2014-02-20 Thread Bandan Das
Alex Williamson writes: > On Wed, 2014-02-19 at 15:20 -0500, Bandan Das wrote: >> Certain cards such as the Broadcom BCM57810 have rom quirks >> that exhibit unstable system behavior duing device assignment. In >> the particular case of 57810, rom execution hangs and if

Re: [Qemu-devel] [PATCH 1/2 v2] pci: change default value of rom_bar to 2

2014-02-23 Thread Bandan Das
at 10:12 +0200, Michael S. Tsirkin wrote: >> > > > On Wed, Feb 19, 2014 at 03:20:54PM -0500, Bandan Das wrote: >> > > > > The following patch depends on the value of rom_bar to >> > > > > determine rom blacklist behavior. Existing code shouldn'

[Qemu-devel] [PATCH 1/2 v3] qdev-monitor: set DeviceState opts before calling realize

2014-02-24 Thread Bandan Das
Setting opts before the realize property is set allows the following patch to make decisions based on whether the user specified "rombar". This also avoids having to create a new tristate property especially for this purpose Signed-off-by: Bandan Das --- qdev-monitor.c | 4 +++- 1 fi

[Qemu-devel] [PATCH 0/2 v3] vfio: blacklist loading of unstable roms

2014-02-24 Thread Bandan Das
infrastructural changes 2. Change vendor_id and device_id type to uint16_t 3. Rename struct for blacklisted devid and vendorid to more meaningful names 4. Remove unnecessary rom_quirk variable and just call vfio_blacklist_opt_rom() in vfio_pci_size_rom() Bandan Das (2): qdev-monitor: set DeviceSt

[Qemu-devel] [PATCH 2/2 v3] vfio: blacklist loading of unstable roms

2014-02-24 Thread Bandan Das
cards unless the user specifies a romfile or rombar=1 on the cmd line Signed-off-by: Bandan Das --- hw/misc/vfio.c | 60 ++ 1 file changed, 60 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 8db182f..df3ceee 100644 --- a/hw

Re: [Qemu-devel] [PATCH 2/2 v3] vfio: blacklist loading of unstable roms

2014-02-25 Thread Bandan Das
Alex Williamson writes: > On Mon, 2014-02-24 at 23:34 -0500, Bandan Das wrote: >> Certain cards such as the Broadcom BCM57810 have rom quirks >> that exhibit unstable system behavior duing device assignment. In >> the particular case of 57810, rom execution hangs and if

[Qemu-devel] [PATCH 0/2 v4] vfio: blacklist loading of unstable roms

2014-02-25 Thread Bandan Das
endor_id and device_id type to uint16_t 3. Rename struct for blacklisted devid and vendorid to more meaningful names 4. Remove unnecessary rom_quirk variable and just call vfio_blacklist_opt_rom() in vfio_pci_size_rom() Bandan Das (2): qdev-monitor: set DeviceState opts before calling realize vfio:

[Qemu-devel] [PATCH 2/2 v4] vfio: blacklist loading of unstable roms

2014-02-25 Thread Bandan Das
cards unless the user specifies a romfile or rombar=1 on the cmd line Signed-off-by: Bandan Das --- hw/misc/vfio.c | 73 ++ 1 file changed, 73 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 8db182f..3a854f9 100644 --- a/hw

[Qemu-devel] [PATCH 1/2 v4] qdev-monitor: set DeviceState opts before calling realize

2014-02-25 Thread Bandan Das
Setting opts before the realize property is set allows the following patch to make decisions based on whether the user specified "rombar". This also avoids having to create a new tristate property especially for this purpose Reviewed-by: Andreas Färber Signed-off-by: Bandan Das

[Qemu-devel] [Bug 1284874] Re: Guest hangs during option rom loading with certain cards

2014-02-25 Thread Bandan Das
Based on the trace in the attachment, the sequence of config space accesses leading up to the hang - vfio: vfio_pci_write_config(:03:00.0, @0x78, 0x1, len=0x4) vfio: vfio_pci_write_config(:03:00.0, @0x80, 0x9430, len=0x4) vfio: vfio_pci_write_config(:03:00.0, @0x78, 0xa30c, len=0x4) vf

[Qemu-devel] [Bug 1284874] [NEW] Guest hangs during option rom loading with certain cards

2014-02-25 Thread Bandan Das
Public bug reported: With a Broadcom Corporation NetXtreme II BCM57810 10 Gigabit Ethernet card, device assignment does not work. The guest hangs during option rom execution. Moreover, if an attempt is made to quit qemu when the guest is in the hung state, the card gets into an inoperable state. O

[Qemu-devel] [Bug 1284874] Re: Guest hangs during option rom loading with certain cards

2014-02-25 Thread Bandan Das
It has been suggested to blacklist loading of rom for this card (and for any other similar card that exhibit such issues) by default, a patch has been posted upstream and is going several iterations based on reviews. The most uptodate series is [PATCH 0/2 v3] vfio: blacklist loading of unstable

[Qemu-devel] [Bug 1284874] Re: Guest hangs during option rom loading with certain cards

2014-02-25 Thread Bandan Das
Comments from Alex Williamson : > The sequence leading up to this is quite short. We do standard PCI BAR > sizing and setup, read the ROM, then do: > > vfio: vfio_pci_write_config(:03:00.0, @0x78, 0x1, len=0x4) > vfio: vfio_pci_write_config(:03:00.0, @0x80, 0x9430, len=0x4) > vfio: vfio_p

[Qemu-devel] [Bug 1284874] Re: Guest hangs during option rom loading with certain cards

2014-02-25 Thread Bandan Das
The vfio code has logic that checks if a FLR is possible and attempts it before and after device assignment. Replacing the FLR with a bus reset succeeds past the stuck option rom loading phase and we are able to boot into the guest successfully which means that the first initialization (by the hard

[Qemu-devel] [PATCH] vfio: Correction in vfio_rom_read when attempting rom loading

2014-02-27 Thread Bandan Das
commit e638073c569e801ce9de added a flag to track whether a previous rom read had failed. Accidentally, the code ended up adding vfio_load_option_rom twice. (Thanks to Alex for spotting it) Signed-off-by: Bandan Das --- hw/misc/vfio.c | 5 + 1 file changed, 1 insertion(+), 4 deletions

[Qemu-devel] [PATCH] vfio: correct debug macro typo

2014-01-28 Thread Bandan Das
Change to VFIO_DEBUG in vfio_msi_interrupt() for debug messages to get printed Signed-off-by: Bandan Das --- hw/misc/vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 9aecaa8..a87078c 100644 --- a/hw/misc/vfio.c +++ b/hw/misc

Re: [Qemu-devel] [PATCH 3/4] qdev: allow both pre- and post-order vists in qdev walking functions

2013-12-06 Thread Bandan Das
Paolo Bonzini writes: > Resetting should be done in post-order, not pre-order. However, > qdev_walk_children and qbus_walk_children do not allow this. Fix > it by adding two extra arguments to the functions. > Signed-off-by: Paolo Bonzini > --- > hw/core/qdev.c | 45

Re: [Qemu-devel] [PATCH 3/4] qdev: allow both pre- and post-order vists in qdev walking functions

2013-12-09 Thread Bandan Das
Paolo Bonzini writes: > Il 07/12/2013 00:27, Bandan Das ha scritto: >> Paolo Bonzini writes: >> >>> Resetting should be done in post-order, not pre-order. However, >>> qdev_walk_children and qbus_walk_children do not allow this. Fix >>> it by a

Re: [Qemu-devel] [PATCH 3/4] qdev: allow both pre- and post-order vists in qdev walking functions

2013-12-09 Thread Bandan Das
Paolo Bonzini writes: > Il 09/12/2013 18:56, Bandan Das ha scritto: >>> > This is a generic walk function. >>> > For reset you want post-order, but in other cases pre-order may make >>> > more sense, for example realize. >> Sorry, not sure

Re: [Qemu-devel] [RFC PATCH 0/3] Add realize unrealize interfaces for BusState

2013-12-11 Thread Bandan Das
Bandan Das writes: > These patches add realize and unrealize interfaces to BusState just > like we have for DeviceState. 1/3 and 2/3 implement the interface and > attempt to integrate it to the existing DeviceState call path. > 3/3 is an example user of the interface, pci in this

[Qemu-devel] [PATCH] pci: unregister vmstate_pcibus on unplug

2013-11-06 Thread Bandan Das
PCIBus registers a vmstate during init. Unregister it upon removal/unplug. Signed-off-by: Bandan Das --- Note that I didn't add a instance_init to register vmstate (yet) due to concerns expressed by Andreas that we shouldn't be registering global state there. hw/pci/pci.c | 8 +

Re: [Qemu-devel] [PATCH for-1.7] vfio-pci: Fix multifunction=on

2013-11-13 Thread Bandan Das
; +} else { > +vdev->pdev.config[PCI_HEADER_TYPE] &= > ~PCI_HEADER_TYPE_MULTI_FUNCTION; > +} > + > /* > * Clear host resource mapping info. If we choose not to register a > * BAR, such as might be the case with the option ROM, we can get Reviewed-by: Bandan Das

Re: [Qemu-devel] [PATCH for-1.7] pci: unregister vmstate_pcibus on unplug

2013-11-19 Thread Bandan Das
Andreas Färber writes: > Am 06.11.2013 23:52, schrieb Bandan Das: >> >> PCIBus registers a vmstate during init. Unregister it upon >> removal/unplug. >> >> Signed-off-by: Bandan Das > > Michael, this patch looks good for 1.7 to me, are you plannin

Re: [Qemu-devel] [PATCH for-1.7] pci: unregister vmstate_pcibus on unplug

2013-11-19 Thread Bandan Das
Andreas Färber writes: > Am 19.11.2013 18:03, schrieb Bandan Das: >> Andreas Färber writes: >> >>> Am 06.11.2013 23:52, schrieb Bandan Das: >>>> >>>> PCIBus registers a vmstate during init. Unregister it upon >>>> removal/unplug. >

Re: [Qemu-devel] [PATCH] vfio-pci: Release all MSI-X vectors when disabled

2013-11-22 Thread Bandan Das
ectors; i++) { > +if (vdev->msi_vectors[i].use) { > +vfio_msix_vector_release(&vdev->pdev, i); > +} > +} > + > if (vdev->nr_vectors) { > vfio_disable_irqindex(vdev, VFIO_PCI_MSIX_IRQ_INDEX); > } Reviewed-by: Bandan Das

[Qemu-devel] [RFC PATCH 1/3] qdev: add realize/unrealize interfaces for BusState

2013-11-25 Thread Bandan Das
Add simple set/get functions for bus. The setter also checks if it has children devices and sets "realize" accordingly. Signed-off-by: Bandan Das --- hw/core/qdev.c | 67 ++ include/hw/qdev-core.h | 7 ++ 2 files c

[Qemu-devel] [RFC PATCH 0/3] Add realize unrealize interfaces for BusState

2013-11-25 Thread Bandan Das
more details. Bandan Das (3): qdev: add realize/unrealize interfaces for BusState qdev: Integrate the bus realized property to get called when device realized property changes pci: move vmstate_pcibus registration/unregistration to realize and unrealize interfaces hw/core/qdev.c

[Qemu-devel] [RFC PATCH 2/3] qdev: Integrate the bus realized property to get

2013-11-25 Thread Bandan Das
recent value of the "realized" property so that an event can be sent when the device is being removed. Third, it reorders code in device_unparent so that unrealize can be recursively called for its children Signed-off-by: Bandan Das --- hw/core/qdev.c

[Qemu-devel] [RFC PATCH 3/3] pci: move vmstate_pcibus registration/unregistration to realize and unrealize interfaces

2013-11-25 Thread Bandan Das
Relocate some stuff to avoid forward declarations and use the realize and unrealize hooks to call into register and unregister vmstate_pcibus respectively Signed-off-by: Bandan Das --- hw/pci/pci.c | 49 - 1 file changed, 28 insertions(+), 21

Re: [Qemu-devel] [PATCH] Fix pc migration from qemu <= 1.5

2013-10-07 Thread Bandan Das
Hi Cole, Cole Robinson writes: > The following commit introduced a migration incompatibility: > > commit 568f0690fd9aa4d39d84b04c1a5dbb53a915c3fe > Author: David Gibson > Date: Thu Jun 6 18:48:49 2013 +1000 > > pci: Replace pci_find_domain() with more general pci_root_bus_path() > > The i

Re: [Qemu-devel] [PATCH v2] Fix pc migration from qemu <= 1.5

2013-10-08 Thread Bandan Das
le format for 1.7+, and <= 1.5. > > Tested with migration from qemu 1.5, qemu 1.6, and qemu.git. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Cole Robinson > --- Reviewed-by: Bandan Das > v2: > Drop needless 1.7 compat bits > > hw/pci-host/piix.c|

Re: [Qemu-devel] KVM emulation failure with recent kernel and QEMU Seabios

2015-03-17 Thread Bandan Das
Gerd Hoffmann writes: > On Mo, 2015-03-16 at 14:16 -0400, Bandan Das wrote: >> Jan Kiszka writes: >> >> > Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: >> >> On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: >> >>> Hi, >> >>>

Re: [Qemu-devel] PCI passthrough of 40G ethernet interface (Openstack/KVM)

2015-03-18 Thread Bandan Das
[Ccing netdev and Stefan] Bandan Das writes: > jacob jacob writes: > >> On Mon, Mar 16, 2015 at 2:12 PM, Bandan Das wrote: >>> jacob jacob writes: >>> >>>> I also see the following in dmesg in the VM. >>>> >>>> [

Re: [Qemu-devel] slow networking with VM virtio

2015-03-24 Thread Bandan Das
[Ccing qemu-devel and kvm] "Boylan, Ross" writes: > Running a Windows 7 VM under KVM, with virtio drivers, the networking was so > slow as to be non-functional. > As suggested in comment 11 of > https://bugzilla.redhat.com/show_bug.cgi?id=855640, I did ethtool -K eth1 gro > off and speeds go

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-25 Thread Bandan Das
Hi Andrey, Andrey Korolyov writes: > On Mon, Mar 16, 2015 at 10:17 PM, Andrey Korolyov wrote: >> For now, it looks like bug have a mixed Murphy-Heisenberg nature, as >> it appearance is very rare (compared to the number of actual launches) >> and most probably bounded to the physical characteri

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-26 Thread Bandan Das
Radim Krčmář writes: > 2015-03-26 21:24+0300, Andrey Korolyov: >> On Thu, Mar 26, 2015 at 8:40 PM, Radim Krčmář wrote: >> > 2015-03-26 20:08+0300, Andrey Korolyov: >> >> KVM internal error. Suberror: 2 >> >> extra data[0]: 80ef >> >> extra data[1]: 8b0d >> > >> > Btw. does this part ever

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-31 Thread Bandan Das
Andrey Korolyov writes: ... > http://xdel.ru/downloads/kvm-e5v2-issue/another-tracepoint-fail-with-apicv.dat.gz > > Something a bit more interesting, but the mess is happening just > *after* NMI firing. What happens if NMI is turned off on the host ?

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-31 Thread Bandan Das
Bandan Das writes: > Andrey Korolyov writes: > ... >> http://xdel.ru/downloads/kvm-e5v2-issue/another-tracepoint-fail-with-apicv.dat.gz >> >> Something a bit more interesting, but the mess is happening just >> *after* NMI firing. > > What happens if NMI i

Re: [Qemu-devel] [PATCH] monitor: suggest running "help" for command errors

2015-05-14 Thread Bandan Das
Markus Armbruster writes: > Bandan Das writes: > ... >> -static void user_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, >> +static int user_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, >> const QDict *param

[Qemu-devel] [PATCH v2 0/2] monitor: suggest running "help" for command errors

2015-05-26 Thread Bandan Das
v2: Split up the command name and arguments parsing into separate functions. [1/2] Skip checking for failures with commands that use the .cmd_new interface or the async interface since they are scheduled for removal [2/2] Bandan Das (2): monitor: cleanup parsing of cmd name and cmd arguments

[Qemu-devel] [PATCH v2 1/2] monitor: cleanup parsing of cmd name and cmd arguments

2015-05-26 Thread Bandan Das
s and return a QDict. Suggested-by: Markus Armbruster Signed-off-by: Bandan Das --- monitor.c | 84 ++- 1 file changed, 51 insertions(+), 33 deletions(-) diff --git a/monitor.c b/monitor.c index b2561e1..f0c1a8c 100644 --- a/monitor.c

[Qemu-devel] [PATCH v2 2/2] monitor: suggest running "help" for command errors

2015-05-26 Thread Bandan Das
dd: string expected Try "help drive_add" for more information Signed-off-by: Bandan Das --- monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor.c b/monitor.c index f0c1a8c..af73195 100644 --- a/monitor.c +++ b/monitor.c @@ -4138,6 +4138,8 @@ static void handle_user_command

[Qemu-devel] [PATCH v3 1/2] monitor: cleanup parsing of cmd name and cmd arguments

2015-05-27 Thread Bandan Das
s and return a QDict. Also, pass a pointer to the cmdline to track current parser location. Suggested-by: Markus Armbruster Signed-off-by: Bandan Das --- monitor.c | 90 +-- 1 file changed, 53 insertions(+), 37 deletions(-) diff --git a/moni

[Qemu-devel] [PATCH v3 0/2] monitor: suggest running "help" for command errors

2015-05-27 Thread Bandan Das
ecking for failures with commands that use the .cmd_new interface or the async interface since they are scheduled for removal [2/2] Bandan Das (2): monitor: cleanup parsing of cmd name and cmd arguments When a command fails due to incorrect syntax or input, suggest using the "help"

[Qemu-devel] [PATCH v3 2/2] When a command fails due to incorrect syntax or input, suggest using the "help" command to get more information about the command. This is only applicable for HMP.

2015-05-27 Thread Bandan Das
Before: (qemu) drive_add usb_flash_drive drive_add: string expected After: (qemu) drive_add usb_flash_drive drive_add: string expected Try "help drive_add" for more information Reviewed-by: Markus Armbruster Signed-off-by: Bandan Das --- monitor.c | 2 ++ 1 file changed, 2 insertion

Re: [Qemu-devel] [PATCH v3 1/2] monitor: cleanup parsing of cmd name and cmd arguments

2015-05-28 Thread Bandan Das
Markus Armbruster writes: > Bandan Das writes: > >> There's too much going on in monitor_parse_command(). >> Split up the arguments parsing bits into a separate function >> monitor_parse_arguments(). Let the original function check for >> command validity and

Re: [Qemu-devel] [PATCH v3 1/2] monitor: cleanup parsing of cmd name and cmd arguments

2015-05-28 Thread Bandan Das
Eric Blake writes: > On 05/28/2015 12:48 PM, Bandan Das wrote: >> Markus Armbruster writes: >> >>> Bandan Das writes: >>> >>>> There's too much going on in monitor_parse_command(). >>>> Split up the arguments parsing bits in

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-06 Thread Bandan Das
Andrey Korolyov writes: > On Fri, Mar 6, 2015 at 1:14 AM, Andrey Korolyov wrote: >> Hello, >> >> recently I`ve got a couple of shiny new Intel 2620v2s for future >> replacement of the E5-2620v1, but I experienced relatively many events >> with emulation errors, all traces looks simular to the on

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-10 Thread Bandan Das
Paolo Bonzini writes: > On 10/03/2015 17:57, Dr. David Alan Gilbert wrote: >> I'm seeing something similar; it's very intermittent and generally >> happening right at boot of the guest; I'm running this on qemu >> head+my postcopy world (but it's happening right at boot before postcopy >> gets

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-10 Thread Bandan Das
"Dr. David Alan Gilbert" writes: > * Paolo Bonzini (pbonz...@redhat.com) wrote: >> >> >> On 10/03/2015 19:21, Bandan Das wrote: >> > Paolo Bonzini writes: >> > >> >> On 10/03/2015 17:57, Dr. David Alan Gilbert wrote: >> >

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-11 Thread Bandan Das
"Kevin O'Connor" writes: ... > > Something is very odd here. When I run the above command (on an older > AMD machine) I get: > > Found 128 cpu(s) max supported 128 cpu(s) > > That first value (1 vs 128) comes from QEMU (via cmos index 0x5f). > That is, during smp init, SeaBIOS expects QEMU to tel

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-11 Thread Bandan Das
"Kevin O'Connor" writes: > On Wed, Mar 11, 2015 at 01:09:42PM -0400, Bandan Das wrote: >> "Kevin O'Connor" writes: >> ... >> > >> > Something is very odd here. When I run the above command (on an older >> > AMD machine) I

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-11 Thread Bandan Das
"Dr. David Alan Gilbert" writes: > * Kevin O'Connor (ke...@koconnor.net) wrote: >> On Wed, Mar 11, 2015 at 04:52:03PM +, Dr. David Alan Gilbert wrote: >> > * Kevin O'Connor (ke...@koconnor.net) wrote: >> > > So, I couldn't get this to fail on my older AMD machine at all with >> > > the defaul

Re: [Qemu-devel] E5-2620v2 - emulation stop error

2015-03-11 Thread Bandan Das
"Dr. David Alan Gilbert" writes: > * Kevin O'Connor (ke...@koconnor.net) wrote: >> On Wed, Mar 11, 2015 at 02:45:31PM -0400, Kevin O'Connor wrote: >> > On Wed, Mar 11, 2015 at 02:40:39PM -0400, Kevin O'Connor wrote: >> > > For what it's worth, I can't seem to trigger the problem if I move the >>

Re: [Qemu-devel] PCI passthrough of 40G ethernet interface (Openstack/KVM)

2015-03-12 Thread Bandan Das
jacob jacob writes: > Hi, > > Seeing failures when trying to do PCI passthrough of Intel XL710 40G > interface to KVM vm. > 0a:00.1 Ethernet controller: Intel Corporation Ethernet > Controller XL710 for 40GbE QSFP+ (rev 01) You are assigning the PF right ? Does assigning VFs work or it's

Re: [Qemu-devel] PCI passthrough of 40G ethernet interface (Openstack/KVM)

2015-03-12 Thread Bandan Das
jacob jacob writes: > On Thu, Mar 12, 2015 at 3:07 PM, Bandan Das wrote: >> jacob jacob writes: >> >>> Hi, >>> >>> Seeing failures when trying to do PCI passthrough of Intel XL710 40G >>> interface to KVM vm. >>> 0a:00.1 Et

Re: [Qemu-devel] PCI passthrough of 40G ethernet interface (Openstack/KVM)

2015-03-16 Thread Bandan Das
and VF passthrough i see issues. It >> is always pointing to some issue with packet transmission. Receive >> seems to work ok. >> >> >> On Thu, Mar 12, 2015 at 8:02 PM, Bandan Das wrote: >>> jacob jacob writes: >>> >>>> On Thu, Mar 12, 2015

Re: [Qemu-devel] KVM emulation failure with recent kernel and QEMU Seabios

2015-03-16 Thread Bandan Das
Jan Kiszka writes: > Am 2015-03-12 um 09:11 schrieb Gerd Hoffmann: >> On Do, 2015-03-12 at 09:09 +0100, Jan Kiszka wrote: >>> Hi, >>> >>> apparently since the latest QEMU updates I'm getting this once in a >>> while: >> >> http://www.seabios.org/pipermail/seabios/2015-March/008897.html > > OK...

Re: [Qemu-devel] PCI passthrough of 40G ethernet interface (Openstack/KVM)

2015-03-16 Thread Bandan Das
jacob jacob writes: > On Mon, Mar 16, 2015 at 2:12 PM, Bandan Das wrote: >> jacob jacob writes: >> >>> I also see the following in dmesg in the VM. >>> >>> [0.095758] ACPI: PCI Root Bridge [PCI0] (domain [bus 00-ff]) >>> [0.0960

Re: [Qemu-devel] [PATCH 3/3] target-i386: get CPL from SS.DPL

2014-05-27 Thread Bandan Das
Paolo Bonzini writes: > CS.RPL is not equal to the CPL in the few instructions between > setting CR0.PE and reloading CS. We get this right in the common > case, because writes to CR0 do not modify the CPL, but it would > not be enough if an SMI comes exactly during that brief period. > Were thi

Re: [Qemu-devel] [PATCH 1/3] target-i386: fix segment flags for SMM, user-mode emulation and VM86 mode

2014-05-27 Thread Bandan Das
Paolo Bonzini writes: > With the next patch, these need to be correct or VM86 tasks > have the wrong CPL. The flags are basically what the Intel VMX > documentation say is mandatory for entry into a VM86 guest. Are you referring to 26.3.1.2 ? Just a nit, I guess it helps to add a pointer in th

Re: [Qemu-devel] [RFC PATCH] kvm: Enable -cpu option to hide KVM

2014-06-02 Thread Bandan Das
Michael Tokarev writes: > 02.06.2014 17:30, Alex Williamson wrote: >> On Mon, 2014-06-02 at 14:32 +0400, Michael Tokarev wrote: >>> 01.06.2014 20:25, Alex Williamson wrote: The latest Nvidia driver (337.88) specifically checks for KVM as the hypervisor and reports Code 43 for the driver

Re: [Qemu-devel] [PATCH] kvm: Enable -cpu option to hide KVM

2014-06-02 Thread Bandan Das
Alex Williamson writes: > The latest Nvidia driver (337.88) specifically checks for KVM as the > hypervisor and reports Code 43 for the driver in a Windows guest when > found. Removing or changing the KVM signature is sufficient for the > driver to load and work. This patch adds an option to ea

Re: [Qemu-devel] [PATCH] Qemu: Fix eax for cpuid leaf 0x40000000

2014-06-04 Thread Bandan Das
Jidong Xiao writes: > On Wed, Jun 4, 2014 at 3:09 AM, Paolo Bonzini wrote: >> Il 04/06/2014 03:10, Jidong Xiao ha scritto: >> >>> diff --git a/qemu-2.0.0/target-i386/kvm.c.orig >>> b/qemu-2.0.0/target-i386/kvm.c >>> index 4389959..b8b282d 100644 >>> --- a/qemu-2.0.0/target-i386/kvm.c.orig >>> ++

Re: [Qemu-devel] [PATCH] Qemu: Fix eax for cpuid leaf 0x40000000

2014-06-04 Thread Bandan Das
Jidong Xiao writes: .. >> > Hi, Bandan, > > Thanks for the advice. I think Paolo has incorporated this patch into > his patch sets, and he sent the revised version in a separate email > earlier today with the subject "[PULL 11/11] kvm: Fix eax for cpuid > leaf 0x4000". Oops! Sorry, must have

[Qemu-devel] [PATCH 0/3] usb-mtp events support

2015-11-03 Thread Bandan Das
supports it. Bandan Das (3): usb-mtp: use a list for keeping track of children usb-mtp: Add support for inotify based file monitoring usb-mtp: add support for basic mtp events hw/usb/dev-mtp.c | 339 +++ trace-events | 4 + 2 files

[Qemu-devel] [PATCH 1/3] usb-mtp: use a list for keeping track of children

2015-11-03 Thread Bandan Das
To support adding/removal of objects, we will need to update the object cache hierarchy we have built internally. Convert to using a Qlist for easier management. Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 67 +--- trace-events | 1

[Qemu-devel] [PATCH 2/3] usb-mtp: Add support for inotify based file monitoring

2015-11-03 Thread Bandan Das
For now, we use inotify watches to track only a small number of events, namely, add, delete and modify. Note that for delete, the kernel already deactivates the watch for us and we just need to take care of modifying our internal state. Suggested-by: Gerd Hoffman Signed-off-by: Bandan Das

[Qemu-devel] [PATCH 3/3] usb-mtp: add support for basic mtp events

2015-11-03 Thread Bandan Das
When the host polls for events, we check our events qlist and send one event at a time. Also, note that the event packet needs to be sent in one go, so I increased the max packet size to 64. Tested with a linux guest. Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 44

Re: [Qemu-devel] [PATCH 1/3] usb-mtp: use a list for keeping track of children

2015-11-05 Thread Bandan Das
Gerd Hoffmann writes: >> static void usb_mtp_object_free(MTPState *s, MTPObject *o) >> { >> -int i; >> +MTPObject *iter; >> + >> +if (o) { >> +trace_usb_mtp_object_free(s->dev.addr, o->handle, o->path); > > That also makes usb_mtp_object_free callable with o == NULL. Makes

Re: [Qemu-devel] [PATCH 2/3] usb-mtp: Add support for inotify based file monitoring

2015-11-05 Thread Bandan Das
Gerd Hoffmann writes: >> +#include > > What happens on non-linux systems? > > I guess we need some #ifdefs to not break the build there, or enable mtp > only for CONFIG_LINUX=y instead of CONFIG_POSIX=y. Oh, I had the ifdefs but somehow I confused myself by thinking CONFIG_POSIX is enough not t

Re: [Qemu-devel] [PATCH 3/3] usb-mtp: add support for basic mtp events

2015-11-05 Thread Bandan Das
Gerd Hoffmann writes: > On Di, 2015-11-03 at 19:00 -0500, Bandan Das wrote: >> -.wMaxPacketSize= 8, >> +.wMaxPacketSize= 64, > > This is a guest-visible change, so strictly speaking this needs be tied > to the machine type. I thin

Re: [Qemu-devel] [PATCH 2/3] usb-mtp: Add support for inotify based file monitoring

2015-11-09 Thread Bandan Das
Gerd Hoffmann writes: > On Di, 2015-11-03 at 19:00 -0500, Bandan Das wrote: >> +/* Add a new watch asap so as to not lose events >> */ > > This comment sounds like there is a race ("asap"). There isn't one, > correct ordering (adding

Re: [Qemu-devel] [PATCH 2/3] usb-mtp: Add support for inotify based file monitoring

2015-11-09 Thread Bandan Das
Gerd Hoffmann writes: > On Di, 2015-11-03 at 19:00 -0500, Bandan Das wrote: >> +case IN_DELETE: >> +/* >> + * The kernel issues a IN_IGNORED event >> + * when a dir containing a watchpoint is >

Re: [Qemu-devel] [PATCH 2/3] usb-mtp: Add support for inotify based file monitoring

2015-11-09 Thread Bandan Das
Bandan Das writes: > Gerd Hoffmann writes: > >> On Di, 2015-11-03 at 19:00 -0500, Bandan Das wrote: >>> +/* Add a new watch asap so as to not lose events >>> */ >> >> This comment sounds like there is a race ("asap"). Th

[Qemu-devel] [PATCH v2 0/4] usb-mtp events support

2015-11-10 Thread Bandan Das
to compile mtp support for linux only but that seems a bit restrictive. Change behavior for "failed events" Instead of bailing out immediately, check if there's still some left that we can process. 4/4: No change Bandan Das (4): usb-mtp: use a list for keeping track of

[Qemu-devel] [PATCH v2 2/4] usb-mtp: free objects on a mtp reset

2015-11-10 Thread Bandan Das
On a reset, call usb_mtp_object_free on all objects and their children Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index eea2dad..c39b81a 100644 --- a/hw/usb/dev-mtp.c +++ b/hw/usb/dev-mtp.c @@ -907,6

  1   2   3   4   >