Re: [Qemu-devel] [PATCH -V3 1/4] target-ppc: Update slb array with correct index values.

2013-08-25 Thread Aneesh Kumar K.V
Alexander Graf writes: > On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" >> >> Without this, a value of rb=0 and rs=0 results in replacing the 0th >> index. This can be observed when using gdb remote debugging support. >> >> (gdb) x/10i do_fork >> 0xc0085

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Benjamin Herrenschmidt
On Mon, 2013-08-26 at 06:44 +0100, Alexander Graf wrote: > > +cap.flags = 0; > > +cap.migration.ecl = 0; > > +cap.reserve.type = 0; > > +cap.migration.common.server_support = 0; > > +cap.reserve.common.server_support = 0; > > My question stands unanswered. Is this just memset(0

Re: [Qemu-devel] [Bug 1212402] [NEW] Enabling KVM with recent QEMU builds from GIT hang at boot on Ubuntu Precise AMD64 kernel 3.8.0

2013-08-25 Thread Dunrong Huang
We have discussed this issue in this mail: http://www.mail-archive.com/qemu-devel@nongnu.org/msg174932.html (VM can not boot after commit 235e898) You can upgrade your kernel to 3.9.x to work around. On Thu, Aug 15, 2013 at 3:23 AM, Julius Schwartzenberg < julius.schwartzenb...@gmail.com> wrote:

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Benjamin Herrenschmidt
On Mon, 2013-08-26 at 10:02 +0530, Nikunj A Dadhania wrote: > > From: Nikunj A Dadhania > > This implements capabilities exchange between host and client. > As at the moment no capability is supported, put zero flags everywhere > and return. > > Signed-off-by: Nikunj A Dadhania > --- > hw/sc

Re: [Qemu-devel] [PULL 0/3] OpenRISC patch queue for 1.7

2013-08-25 Thread Jia Liu
Hi Peter, On Fri, Aug 23, 2013 at 10:09 PM, Peter Maydell wrote: > On 21 August 2013 03:06, Jia Liu wrote: >> This is my OpenRISC patch queue for 1.7, it have been well tested, please >> pull. >> >> >> >> Jia Liu (3): >> hw/

Re: [Qemu-devel] [PATCH -V3 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-08-25 Thread Aneesh Kumar K.V
Alexander Graf writes: > On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" >> >> With kvm enabled, we store the hash page table information in the hypervisor. >> Use ioctl to read the htab contents. Without this we get the below error when >> trying to read the gues

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Alexander Graf
Am 26.08.2013 um 05:32 schrieb Nikunj A Dadhania : > Benjamin Herrenschmidt writes: > >> On Sun, 2013-08-25 at 17:41 +0100, Alexander Graf wrote: +vcap = &req->iu.mad.capabilities; +rc = spapr_vio_dma_read(&s->vdev, be64_to_cpu(vcap->buffer), +

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Nikunj A Dadhania
Benjamin Herrenschmidt writes: > On Sun, 2013-08-25 at 17:41 +0100, Alexander Graf wrote: >> > +vcap = &req->iu.mad.capabilities; >> > +rc = spapr_vio_dma_read(&s->vdev, be64_to_cpu(vcap->buffer), >> > +&cap, >> be16_to_cpu(vcap->common.length)); >> >> While I

Re: [Qemu-devel] [Qemu-ppc] [PATCH -V3 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-08-25 Thread Benjamin Herrenschmidt
On Mon, 2013-08-26 at 09:03 +0530, Aneesh Kumar K.V wrote: > > because non bolted entries could be invalidated and reused by the time > we look at the returned hpte values. I am not sure, whether it is ok or > we need to make sure such a thing doesn't happen. For the use case i am > looking at, ie

Re: [Qemu-devel] [Qemu-ppc] [PATCH -V3 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-08-25 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Sun, 2013-08-25 at 19:32 +0100, Alexander Graf wrote: >> > + * At this point we are only interested in reading only bolted >> entries >> > + */ >> > +ghf.flags = KVM_GET_HTAB_BOLTED_ONLY; >> > +ghf.start_index = index; >> > +htab_fd = kvm_vm

[Qemu-devel] [PATCH 3/3] qemu-iotests: add tests for runtime fd passing via SCM rights

2013-08-25 Thread Wenchao Xia
This case will test whether the monitor can receive fd at runtime. To verify better, additional monitor is created to see if qemu can handler two monitor instance correctly. Signed-off-by: Wenchao Xia --- tests/qemu-iotests/045 | 37 - tests/qemu-iotests

[Qemu-devel] [PATCH 2/3] qemu-iotests: add infrastructure of fd passing via SCM

2013-08-25 Thread Wenchao Xia
This patch make use of the compiled scm helper program to transfer fd via unix socket at runtime. Signed-off-by: Wenchao Xia --- QMP/qmp.py|6 ++ tests/qemu-iotests/check |1 + tests/qemu-iotests/iotests.py | 26 ++ 3 files changed,

[Qemu-devel] [PATCH 1/3] qemu-iotests: add unix socket help program

2013-08-25 Thread Wenchao Xia
This program can do a sendmsg call to transfer fd with unix socket, which is not supported in python2. The built binary will not be deleted in clean, but it is a existing issue in ./tests, which should be solved in another patch. Signed-off-by: Wenchao Xia --- configure

[Qemu-devel] [PATCH 0/3] qemu-iotests: add test for fd passing via SCM rights

2013-08-25 Thread Wenchao Xia
This series add test case for fd passing with unix socket at runtime. Since getfd and closefd interface will interact with monitor's data, so it will help to do regression test for monitor patches. Since python2 do not support sendmsg(), so a C helper program is added to do the job. Wenchao Xia (3

Re: [Qemu-devel] [PATCH 1/2] hpet: entitle more irq pins for hpet

2013-08-25 Thread liu ping fan
On Sun, Aug 25, 2013 at 2:45 PM, Paolo Bonzini wrote: > Il 25/08/2013 04:16, Liu Ping Fan ha scritto: >> On PC, IRQ2/8 can be reserved for hpet timer 0/1. And pin 16~23 of >> ioapic can be dynamically assigned to hpet as guest chooses. >> >> Signed-off-by: Liu Ping Fan >> --- >> hw/timer/hpet.c

Re: [Qemu-devel] [PATCH 2/2] hpet: inverse polarity when pin above ISA_NUM_IRQS

2013-08-25 Thread liu ping fan
On Sun, Aug 25, 2013 at 2:44 PM, Paolo Bonzini wrote: > Il 25/08/2013 04:16, Liu Ping Fan ha scritto: >> According to hpet spec, hpet irq is high active. But according to >> ICH spec, there is inversion before the input of ioapic. So the OS >> will expect low active on this IRQ line.(And this is o

Re: [Qemu-devel] [PATCH 05/47] Makefile: Clone kconfig git submodule in Makefile

2013-08-25 Thread Andreas Färber
Am 26.08.2013 00:58, schrieb Ákos Kovács: > Signed-off-by: Ákos Kovács > --- > Makefile | 150 > -- > 1 file changed, 88 insertions(+), 62 deletions(-) Something went wrong here, you're reverting Stefan's win32 changes, and dtc change

[Qemu-devel] Fw: Max7310: confused about the method of reading output port register

2013-08-25 Thread Yang Ning
Dear All: Firstly,I'm writing to express my thanks to Zaborowski for the source code of Max7310 which have helped me so much. But I'm still confused about the method of reading output port register. code: case 0x01: /* Output port */ return s->level & ~s->direction; break

Re: [Qemu-devel] [PATCH V9 06/12] NUMA: Add Linux libnuma detection

2013-08-25 Thread Wanlong Gao
On 08/23/2013 04:40 PM, Andrew Jones wrote: > > > - Original Message - >> Add detection of libnuma (mostly contained in the numactl package) >> to the configure script. Can be enabled or disabled on the command line, >> default is use if available. >> >> Signed-off-by: Andre Przywara >>

Re: [Qemu-devel] [PATCH v6 3/8] block: implement reference count for BlockDriverState

2013-08-25 Thread Fam Zheng
On Fri, 08/23 12:12, Jeff Cody wrote: > On Fri, Aug 23, 2013 at 09:14:46AM +0800, Fam Zheng wrote: > > Introduce bdrv_ref/bdrv_unref to manage the lifecycle of > > BlockDriverState. They are unused for now but will used to replace > > bdrv_delete() later. > > > > Signed-off-by: Fam Zheng > > ---

Re: [Qemu-devel] [PATCH V9 07/12] NUMA: parse guest numa nodes memory policy

2013-08-25 Thread Wanlong Gao
On 08/23/2013 10:11 PM, Andrew Jones wrote: > > > - Original Message - >> The memory policy setting format is like: >> >> policy={default|membind|interleave|preferred}[,relative=true],host-nodes=N-N >> And we are adding this setting as a suboption of "-numa mem,", >> the memory polic

Re: [Qemu-devel] [PATCH 09/47] hw/m68k/Makefile.objs: Conditionally build boards

2013-08-25 Thread Max Filippov
On Mon, Aug 26, 2013 at 2:58 AM, Ákos Kovács wrote: > CONFIG_AN5206, CONFIG_DUMMY_M68K, CONFIG_MCF5206, CONFIG_MCF5208 Looks like CONFIG_MCF5206 is missing. > make variables created for m68k boards, and added to > default-configs/m86k-softmmu.mak. > > Signed-off-by: Ákos Kovács > --- > default

Re: [Qemu-devel] [PATCH 07/47] hw/arm/Makefile.objs: CONFIG_* created for each board

2013-08-25 Thread Max Filippov
On Mon, Aug 26, 2013 at 2:58 AM, Ákos Kovács wrote: > The new CONFIG_* definitions added to the default-configs/arm-softmmu.mak > Signed-off-by: Ákos Kovács > --- > default-configs/arm-softmmu.mak | 13 + > hw/arm/Makefile.objs| 35 ---

[Qemu-devel] [PATCH 43/47] hw/usb/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/usb/Kconfig | 60 1 file changed, 60 insertions(+) create mode 100644 hw/usb/Kconfig diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig new file mode 100644 index 000..a39915c --- /dev/null +++ b/hw/usb/K

[Qemu-devel] [PATCH 07/47] hw/arm/Makefile.objs: CONFIG_* created for each board

2013-08-25 Thread Ákos Kovács
The new CONFIG_* definitions added to the default-configs/arm-softmmu.mak Signed-off-by: Ákos Kovács --- default-configs/arm-softmmu.mak | 13 + hw/arm/Makefile.objs| 35 --- 2 files changed, 41 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH 05/47] Makefile: Clone kconfig git submodule in Makefile

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- Makefile | 150 -- 1 file changed, 88 insertions(+), 62 deletions(-) diff --git a/Makefile b/Makefile index 4d257f1..9e7d815 100644 --- a/Makefile +++ b/Makefile @@ -56,8 +56,8 @@ Makefile: ; configure:

[Qemu-devel] [PATCH 47/47] Kconfig: Main kconfig file added

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- Kconfig | 12 1 file changed, 12 insertions(+) create mode 100644 Kconfig diff --git a/Kconfig b/Kconfig new file mode 100644 index 000..7fd9771 --- /dev/null +++ b/Kconfig @@ -0,0 +1,12 @@ +# Kconfig SeaBIOS configuration + +mainmenu "QEMU Conf

[Qemu-devel] [PATCH 46/47] configure: Generate Kconfig.targets with --target-list

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- configure | 11 +++ 1 file changed, 11 insertions(+) diff --git a/configure b/configure index 18fa608..353c0cb 100755 --- a/configure +++ b/configure @@ -4288,6 +4288,7 @@ case "$target_name" in ;; sparc64) TARGET_BASE_ARCH=sparc +kconfig_s

[Qemu-devel] [PATCH 44/47] hw/watchdog/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/watchdog/Kconfig |7 +++ 1 file changed, 7 insertions(+) create mode 100644 hw/watchdog/Kconfig diff --git a/hw/watchdog/Kconfig b/hw/watchdog/Kconfig new file mode 100644 index 000..d579e32 --- /dev/null +++ b/hw/watchdog/Kconfig @@ -0,0 +1,7 @@ +c

[Qemu-devel] [PATCH 40/47] hw/ssi/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/ssi/Kconfig | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 hw/ssi/Kconfig diff --git a/hw/ssi/Kconfig b/hw/ssi/Kconfig new file mode 100644 index 000..4f89fd2 --- /dev/null +++ b/hw/ssi/Kconfig @@ -0,0 +1,14 @@ +config SSI +b

[Qemu-devel] [PATCH 41/47] hw/timer/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/timer/Kconfig | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 hw/timer/Kconfig diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig new file mode 100644 index 000..5d55137 --- /dev/null +++ b/hw

[Qemu-devel] [PATCH 39/47] hw/sd/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/sd/Kconfig | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 hw/sd/Kconfig diff --git a/hw/sd/Kconfig b/hw/sd/Kconfig new file mode 100644 index 000..eaef4f7 --- /dev/null +++ b/hw/sd/Kconfig @@ -0,0 +1,23 @@ +config SD +

[Qemu-devel] [PATCH 38/47] hw/scsi/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/scsi/Kconfig | 21 + 1 file changed, 21 insertions(+) create mode 100644 hw/scsi/Kconfig diff --git a/hw/scsi/Kconfig b/hw/scsi/Kconfig new file mode 100644 index 000..5e493a6 --- /dev/null +++ b/hw/scsi/Kconfig @@ -0,0 +1,21 @@ +menu

[Qemu-devel] [PATCH 34/47] hw/nvram/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/nvram/Kconfig |5 + 1 file changed, 5 insertions(+) create mode 100644 hw/nvram/Kconfig diff --git a/hw/nvram/Kconfig b/hw/nvram/Kconfig new file mode 100644 index 000..1235c6e --- /dev/null +++ b/hw/nvram/Kconfig @@ -0,0 +1,5 @@ +config DS1225Y +

[Qemu-devel] [PATCH 32/47] hw/misc/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/misc/Kconfig | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 hw/misc/Kconfig diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig new file mode 100644 index 000..5a6477f --- /dev/null +++ b/hw/mi

[Qemu-devel] [PATCH 37/47] hw/pci-host/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/pci-host/Kconfig | 36 1 file changed, 36 insertions(+) create mode 100644 hw/pci-host/Kconfig diff --git a/hw/pci-host/Kconfig b/hw/pci-host/Kconfig new file mode 100644 index 000..12014f5 --- /dev/null +++ b/hw/pci-h

[Qemu-devel] [PATCH 31/47] hw/isa/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/isa/Kconfig | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 hw/isa/Kconfig diff --git a/hw/isa/Kconfig b/hw/isa/Kconfig new file mode 100644 index 000..8b6baaf --- /dev/null +++ b/hw/isa/Kconfig @@ -0,0

[Qemu-devel] [PATCH 30/47] hw/intc/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/intc/Kconfig | 28 1 file changed, 28 insertions(+) create mode 100644 hw/intc/Kconfig diff --git a/hw/intc/Kconfig b/hw/intc/Kconfig new file mode 100644 index 000..c4dec79 --- /dev/null +++ b/hw/intc/Kconfig @@ -0,0 +1,28 @@

[Qemu-devel] [PATCH 09/47] hw/m68k/Makefile.objs: Conditionally build boards

2013-08-25 Thread Ákos Kovács
CONFIG_AN5206, CONFIG_DUMMY_M68K, CONFIG_MCF5206, CONFIG_MCF5208 make variables created for m68k boards, and added to default-configs/m86k-softmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/m68k-softmmu.mak |3 +++ hw/m68k/Makefile.objs|7 --- 2 files changed, 7

[Qemu-devel] [PATCH 26/47] hw/gpio/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/gpio/Kconfig |5 + 1 file changed, 5 insertions(+) create mode 100644 hw/gpio/Kconfig diff --git a/hw/gpio/Kconfig b/hw/gpio/Kconfig new file mode 100644 index 000..820c76f --- /dev/null +++ b/hw/gpio/Kconfig @@ -0,0 +1,5 @@ +config MAX7310 +boo

[Qemu-devel] [PATCH 28/47] hw/ide/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/ide/Kconfig | 49 + 1 file changed, 49 insertions(+) create mode 100644 hw/ide/Kconfig diff --git a/hw/ide/Kconfig b/hw/ide/Kconfig new file mode 100644 index 000..c73af88 --- /dev/null +++ b/hw/ide/Kconfig

[Qemu-devel] [PATCH 25/47] hw/dma/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/dma/Kconfig | 25 + 1 file changed, 25 insertions(+) create mode 100644 hw/dma/Kconfig diff --git a/hw/dma/Kconfig b/hw/dma/Kconfig new file mode 100644 index 000..1ef6b47 --- /dev/null +++ b/hw/dma/Kconfig @@ -0,0 +1,25 @@ +config

[Qemu-devel] [PATCH 24/47] hw/display/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/display/Kconfig | 84 1 file changed, 84 insertions(+) create mode 100644 hw/display/Kconfig diff --git a/hw/display/Kconfig b/hw/display/Kconfig new file mode 100644 index 000..1f6f386 --- /dev/null ++

[Qemu-devel] [PATCH 22/47] hw/core/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/core/Kconfig | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 hw/core/Kconfig diff --git a/hw/core/Kconfig b/hw/core/Kconfig new file mode 100644 index 000..8c275f7 --- /dev/null +++ b/hw/core/Kconfig @@ -0,0 +1,11 @@ +config EMPTY_SL

[Qemu-devel] [PATCH 18/47] hw/arm/Kconfig: Add ARM Kconfig

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/arm/Kconfig | 235 1 file changed, 235 insertions(+) create mode 100644 hw/arm/Kconfig diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig new file mode 100644 index 000..c72b949 --- /dev/null +++ b/hw/arm/

[Qemu-devel] [PATCH 21/47] hw/char/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/char/Kconfig | 24 1 file changed, 24 insertions(+) create mode 100644 hw/char/Kconfig diff --git a/hw/char/Kconfig b/hw/char/Kconfig new file mode 100644 index 000..7ad0bd3 --- /dev/null +++ b/hw/char/Kconfig @@ -0,0 +1,24 @@ +co

[Qemu-devel] [PATCH 45/47] hw/Kconfig: Add the main Kconfig for hw/

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/Kconfig | 27 +++ 1 file changed, 27 insertions(+) create mode 100644 hw/Kconfig diff --git a/hw/Kconfig b/hw/Kconfig new file mode 100644 index 000..23e062b --- /dev/null +++ b/hw/Kconfig @@ -0,0 +1,27 @@ +source "hw/9pfs/Kconfig"

[Qemu-devel] [PATCH 15/47] hw/lm32/Makefile.objs: Conditionally build lm32 and milkmyst

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/lm32/Makefile.objs |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/lm32/Makefile.objs b/hw/lm32/Makefile.objs index ea6418a..c394186 100644 --- a/hw/lm32/Makefile.objs +++ b/hw/lm32/Makefile.objs @@ -1,3 +1,3 @@ # LM32 boards -obj-y

[Qemu-devel] [PATCH 17/47] hw/9pfs/Kconfig: Add 9pfs Kconfig

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/9pfs/Kconfig |2 ++ 1 file changed, 2 insertions(+) create mode 100644 hw/9pfs/Kconfig diff --git a/hw/9pfs/Kconfig b/hw/9pfs/Kconfig new file mode 100644 index 000..f16ffed --- /dev/null +++ b/hw/9pfs/Kconfig @@ -0,0 +1,2 @@ +config OPEN_BY_HANDLE +

[Qemu-devel] [PATCH 13/47] hw/sh4/Makefile.objs: Build sh4 boards conditionally

2013-08-25 Thread Ákos Kovács
New CONFIG_* varibales created for r2d and shix boards and added to the default-configs/sh4*-softmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/sh4-softmmu.mak |3 +++ default-configs/sh4eb-softmmu.mak |3 +++ hw/sh4/Makefile.objs |4 ++-- 3 files changed, 8 i

[Qemu-devel] [PATCH 42/47] hw/tpm/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/tpm/Kconfig |6 ++ 1 file changed, 6 insertions(+) create mode 100644 hw/tpm/Kconfig diff --git a/hw/tpm/Kconfig b/hw/tpm/Kconfig new file mode 100644 index 000..8c9fb24 --- /dev/null +++ b/hw/tpm/Kconfig @@ -0,0 +1,6 @@ +config TPM_TIS +bool +

[Qemu-devel] [PATCH 14/47] hw/sparc/Makefile.objs: CONFIG_* for sun4m and leon3 created

2013-08-25 Thread Ákos Kovács
CONFIG_LEON3 added to default-configs/sparc-softmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/sparc-softmmu.mak |2 ++ hw/sparc/Makefile.objs|3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/default-configs/sparc-softmmu.mak b/default-configs/sp

[Qemu-devel] [PATCH 36/47] hw/pci-bridge/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/pci-bridge/Kconfig |3 +++ 1 file changed, 3 insertions(+) create mode 100644 hw/pci-bridge/Kconfig diff --git a/hw/pci-bridge/Kconfig b/hw/pci-bridge/Kconfig new file mode 100644 index 000..1d23483 --- /dev/null +++ b/hw/pci-bridge/Kconfig @@ -0,0 +1,3

[Qemu-devel] [PATCH 12/47] hw/ppc/Makefile.objs: Build all boards conditinally

2013-08-25 Thread Ákos Kovács
CONFIG_PPC405, CONFIG_PPC440, CONFIG_PPC4XX, CONFIG_PREP, CONFIG_MAC_OLDWORLD, CONFIG_MAC_NEWWORLD, CONFIG_VIRTEX configuration options created for default-configs/ppc*-softmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/ppc-softmmu.mak|8 default-configs/ppc64-softmmu.m

[Qemu-devel] [PATCH 11/47] hw/mips/Makefile.objs: Create CONFIG_* for mips boards

2013-08-25 Thread Ákos Kovács
Add the new configs to default-configs/mips*-sofmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/mips-softmmu.mak |6 ++ default-configs/mips64-softmmu.mak |6 ++ default-configs/mips64el-softmmu.mak |6 ++ default-configs/mipsel-softmmu.mak |6 ++

[Qemu-devel] [PATCH 33/47] hw/net/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/net/Kconfig | 74 1 file changed, 74 insertions(+) create mode 100644 hw/net/Kconfig diff --git a/hw/net/Kconfig b/hw/net/Kconfig new file mode 100644 index 000..19ca549 --- /dev/null +++ b/hw/net/K

[Qemu-devel] [PATCH 35/47] hw/pci/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/pci/Kconfig |8 1 file changed, 8 insertions(+) create mode 100644 hw/pci/Kconfig diff --git a/hw/pci/Kconfig b/hw/pci/Kconfig new file mode 100644 index 000..31a755d --- /dev/null +++ b/hw/pci/Kconfig @@ -0,0 +1,8 @@ +config PCI +bool + +m

[Qemu-devel] [PATCH 10/47] hw/microblaze/Makefile.objs: Create configs for petalogix boards

2013-08-25 Thread Ákos Kovács
CONFIG_PETALOGIX_* configs added to default-configs/microblaze-softmmu.mak and default-configs/microblazeel-softmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/microblaze-softmmu.mak |3 +++ default-configs/microblazeel-softmmu.mak |3 +++ hw/microblaze/Makefile.objs

[Qemu-devel] [PATCH 06/47] hw/alpha/Makefile.objs: Build objects depending on CLIPPER

2013-08-25 Thread Ákos Kovács
Set CONFIG_CLIPPER as default for default-configs/alpha-softmmu.mak Signed-off-by: Ákos Kovács --- default-configs/alpha-softmmu.mak |2 ++ hw/alpha/Makefile.objs|2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/default-configs/alpha-softmmu.mak b/default-

[Qemu-devel] [PATCH 29/47] hw/input/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/input/Kconfig | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 hw/input/Kconfig diff --git a/hw/input/Kconfig b/hw/input/Kconfig new file mode 100644 index 000..9114433 --- /dev/null +++ b/hw/input/Kconfig @@ -0,0 +1,23 @@

[Qemu-devel] [PATCH 23/47] hw/cpu/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/cpu/Kconfig | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 hw/cpu/Kconfig diff --git a/hw/cpu/Kconfig b/hw/cpu/Kconfig new file mode 100644 index 000..d90cbe5 --- /dev/null +++ b/hw/cpu/Kconfig @@ -0,0 +1,11 @@ +config ARM11MPCORE +

[Qemu-devel] [PATCH 27/47] hw/i2c/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/i2c/Kconfig | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 hw/i2c/Kconfig diff --git a/hw/i2c/Kconfig b/hw/i2c/Kconfig new file mode 100644 index 000..eaf17cc --- /dev/null +++ b/hw/i2c/Kconfig @@ -0,0 +1,10 @@ +config VERSATILE_I2C

[Qemu-devel] [PATCH 03/47] default-configs/: CONFIG_GDBSTUB_XML removed

2013-08-25 Thread Ákos Kovács
Makefile.target: Build gdbstub-xml.o only when TARGET_XML_FILES is not empty. Signed-off-by: Ákos Kovács --- Makefile.target |2 +- default-configs/arm-linux-user.mak|2 -- default-configs/arm-softmmu.mak |1 - default-configs/armeb-linux-u

[Qemu-devel] [PATCH 19/47] hw/audio/Kconfig: Add audio Kconfig

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/audio/Kconfig | 41 + 1 file changed, 41 insertions(+) create mode 100644 hw/audio/Kconfig diff --git a/hw/audio/Kconfig b/hw/audio/Kconfig new file mode 100644 index 000..bb6c31d --- /dev/null +++ b/hw/audio/Kconfi

[Qemu-devel] [PATCH 04/47] scripts/kconfig: kconfig-frontends submodule added

2013-08-25 Thread Ákos Kovács
Add the kconfig-frontends to scripts/, picking version 3.10. Signed-off-by: Ákos Kovács --- .gitmodules |3 +++ scripts/kconfig |1 + 2 files changed, 4 insertions(+) create mode 16 scripts/kconfig diff --git a/.gitmodules b/.gitmodules index d7e3f3c..754fc03 100644 --- a/.gitm

[Qemu-devel] [PATCH 20/47] hw/block/Kconfig: Add Kconfig file

2013-08-25 Thread Ákos Kovács
Signed-off-by: Ákos Kovács --- hw/block/Kconfig | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 hw/block/Kconfig diff --git a/hw/block/Kconfig b/hw/block/Kconfig new file mode 100644 index 000..400cab3 --- /dev/null +++ b/hw/block/Kconfig @@ -0

[Qemu-devel] [RFC PATCH 00/47] Describing patchset

2013-08-25 Thread Ákos Kovács
This is a request-for-comments patchset on the kconfig integration. The patchset contains a 'scripts/kconfig' git submodule (PATCH 5, kconfig-frontends v3.10) with the necessary modifications in the Makefile.objs (PATCHES 6-16). It also contains the Kconfig files themselves (PATCHES 17-45) for

[Qemu-devel] [PATCH 01/47] rules.mak: New logical functions

2013-08-25 Thread Ákos Kovács
lnot, land, lor, lif, eq, ne, isempty, notempty functions added Example usage: obj-$(call lor,$(CONFIG_LINUX),$(CONFIG_BSD)) += feature.o Signed-off-by: Ákos Kovács --- rules.mak | 16 1 file changed, 16 insertions(+) diff --git a/rules.mak b/rules.mak index 4499745..7e8e

[Qemu-devel] [PATCH 02/47] Makefile.target: CONFIG_NO_* variables removed

2013-08-25 Thread Ákos Kovács
CONFIG_NO_* variables replaced with the lnot logical function Signed-off-by: Ákos Kovács --- Makefile.target |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile.target b/Makefile.target index 9a49852..bbc668b 100644 --- a/Makefile.target +++ b/Makefile.target

[Qemu-devel] [PATCH 16/47] hw/xtensa/Makefile.objs: Build xtensa_sim and xtensa_lx60 conditionally

2013-08-25 Thread Ákos Kovács
Add the new CONFIG_* values to default-config/xtensa*-softmmu.mak. Signed-off-by: Ákos Kovács --- default-configs/xtensa-softmmu.mak |3 +++ default-configs/xtensaeb-softmmu.mak |3 +++ hw/xtensa/Makefile.objs |4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [PATCH -V3 4/4] target-ppc: Use #define for max slb entries

2013-08-25 Thread Andreas Färber
Am 25.08.2013 20:33, schrieb Alexander Graf: > > On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" >> >> Instead of opencoding 64 use MAX_SLB_ENTRIES. We don't update the kernel >> header here. > > Ah, here you're fixing up the hardcoded 64 :). Could you please chec

Re: [Qemu-devel] [PATCH -V3 3/4] target-ppc: Check for error on address translation in memsave command

2013-08-25 Thread Andreas Färber
Am 25.08.2013 20:32, schrieb Alexander Graf: > > On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" >> >> When we translate the virtual address to physical check for error. >> >> Signed-off-by: Aneesh Kumar K.V > > I think this change is sane, but I'd really prefer

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Benjamin Herrenschmidt
On Sun, 2013-08-25 at 17:41 +0100, Alexander Graf wrote: > > +vcap = &req->iu.mad.capabilities; > > +rc = spapr_vio_dma_read(&s->vdev, be64_to_cpu(vcap->buffer), > > +&cap, > be16_to_cpu(vcap->common.length)); > > While I don't think any harm could happen from i

Re: [Qemu-devel] [Qemu-ppc] [PATCH -V3 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-08-25 Thread Benjamin Herrenschmidt
On Sun, 2013-08-25 at 19:32 +0100, Alexander Graf wrote: > > + * At this point we are only interested in reading only bolted > entries > > + */ > > +ghf.flags = KVM_GET_HTAB_BOLTED_ONLY; > > +ghf.start_index = index; > > +htab_fd = kvm_vm_ioctl(kvm_state, KVM_PPC_GET_HTAB_FD, &g

Re: [Qemu-devel] [RFC PATCH] Introduce RCU-enabled DQs (v2)

2013-08-25 Thread Mathieu Desnoyers
Hi Mike, * Mike Day (ncm...@ncultra.org) wrote: > Add RCU-enabled variants on the existing bsd DQ facility. Each Q > operation has the same interface as the existing (non-RCU) > version. Also, each operation is implemented as macro for now. > > Using the RCU-enabled DQ, existing DQ users will be

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Benjamin Herrenschmidt
On Sun, 2013-08-25 at 17:41 +0100, Alexander Graf wrote: > > While I don't think any harm could happen from it, this could lead to > a potential timing attack where we read and write from different > locations in memory if the guest swizzles the request while we're > processing it. > > It's certa

Re: [Qemu-devel] [RFC] TCG unit testing

2013-08-25 Thread Stefan Weil
Am 23.08.2013 23:18, schrieb Richard Henderson: > > I don't see how TCI really comes into this except as Yet Another Backend to be > tested. Indeed, such unit testing could show that TCI is in fact broken wrt > helpers, depending on the host abi. TCI is special because it is the only TCG backend

Re: [Qemu-devel] [PATCH -V3 1/4] target-ppc: Update slb array with correct index values.

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > Without this, a value of rb=0 and rs=0 results in replacing the 0th > index. This can be observed when using gdb remote debugging support. > > (gdb) x/10i do_fork > 0xc0085330 :Cannot access memory

Re: [Qemu-devel] [PATCH -V3 3/4] target-ppc: Check for error on address translation in memsave command

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > When we translate the virtual address to physical check for error. > > Signed-off-by: Aneesh Kumar K.V I think this change is sane, but I'd really prefer to see an ack from (or get this applied by) Luiz. Alex

Re: [Qemu-devel] [PATCH -V3 2/4] target-ppc: Fix page table lookup with kvm enabled

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > With kvm enabled, we store the hash page table information in the hypervisor. > Use ioctl to read the htab contents. Without this we get the below error when > trying to read the guest address > > (gdb) x/10 do_for

Re: [Qemu-devel] [PATCH -V3 4/4] target-ppc: Use #define for max slb entries

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 06:20, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > Instead of opencoding 64 use MAX_SLB_ENTRIES. We don't update the kernel > header here. Ah, here you're fixing up the hardcoded 64 :). Could you please check whether ARRAY_SIZE() works in all these as well? If not

Re: [Qemu-devel] [PATCH] spapr-pci: rework MSI/MSIX

2013-08-25 Thread Alexander Graf
On 12.07.2013, at 08:38, Alexey Kardashevskiy wrote: > On the sPAPR platform a guest allocates MSI/MSIX vectors via RTAS > hypercalls which return global IRQ numbers to a guest so it only > operates with those and never touches MSIMessage. > > Therefore MSIMessage handling is completely hidden i

Re: [Qemu-devel] [PATCH for-1.6? v2 21/21] qtest: Prepare QOM machine tests

2013-08-25 Thread Andreas Färber
Am 25.08.2013 19:33, schrieb Peter Maydell: > On 5 August 2013 14:27, Andreas Färber wrote: >> +static const char *arm_machines[] = { >> +"integratorcp", >> +"versatilepb", >> +"versatileab", >> +"lm3s811evb", >> +"lm3s6965evb", >> +"collie", > > [etc] > > I'd rather have

Re: [Qemu-devel] [PATCH for-1.6? v2 21/21] qtest: Prepare QOM machine tests

2013-08-25 Thread Andreas Färber
Am 25.08.2013 19:22, schrieb Alexander Graf: > > On 05.08.2013, at 14:27, Andreas Färber wrote: > >> Instantiate all [*] machines per target, so that they get a bit of test >> coverage at all. This has proven helpful during QOM refactorings. >> >> [*] ppcemb target contains some non-working non-e

Re: [Qemu-devel] [PATCH for-1.6? v2 21/21] qtest: Prepare QOM machine tests

2013-08-25 Thread Peter Maydell
On 5 August 2013 14:27, Andreas Färber wrote: > +static const char *arm_machines[] = { > +"integratorcp", > +"versatilepb", > +"versatileab", > +"lm3s811evb", > +"lm3s6965evb", > +"collie", [etc] I'd rather have these tests than not have them, but can't we autodetect the

Re: [Qemu-devel] [PATCH for-1.6? v2 21/21] qtest: Prepare QOM machine tests

2013-08-25 Thread Alexander Graf
On 05.08.2013, at 14:27, Andreas Färber wrote: > Instantiate all [*] machines per target, so that they get a bit of test > coverage at all. This has proven helpful during QOM refactorings. > > [*] ppcemb target contains some non-working non-embedded machines, and > ppc405 CPUs are not available

Re: [Qemu-devel] [RFC] TCG unit testing

2013-08-25 Thread Peter Maydell
On 23 August 2013 22:18, Richard Henderson wrote: > E.g. tci never defines TCG_TARGET_CALL_ALIGN_ARGS. Thus if one uses tci on an > ARM host, a helper like > > DEF_HELPER_FLAGS_2(store_fpcr, TCG_CALL_NO_RWG, void, env, i64) > > will have its arguments loaded into TCI's R0, R1, R2, and thence into

Re: [Qemu-devel] [PATCH] spapr-vscsi: Adding VSCSI capabilities

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 10:22, Alexey Kardashevskiy wrote: > From: Nikunj A Dadhania > > This implements capabilities exchange between host and client. > As at the moment no capability is supported, put zero flags everywhere > and return. > > Signed-off-by: Nikunj A Dadhania > Signed-off-by: Alexey

Re: [Qemu-devel] [RFC] TCG unit testing

2013-08-25 Thread Richard Henderson
On 08/23/2013 01:42 PM, Stefan Weil wrote: > Am 23.08.2013 21:47, schrieb Richard Henderson: >> I've been thinking for a while about how to reliably test TCG backends, and >> maybe how to do regression testing on them. Having to begin the test from a >> guest binary, especially considering the vas

Re: [Qemu-devel] [PATCH] spapr-vscsi: Report error on unsupported MAD requests

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 10:23, Alexey Kardashevskiy wrote: > The existing driver just dropped unsupported requests. This adds error > responses to those unhandled requests. > > Signed-off-by: Alexey Kardashevskiy > --- > hw/scsi/spapr_vscsi.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 del

Re: [Qemu-devel] [PATCH] hw: fix to display correct memory size

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 17:20, Andreas Färber wrote: > Am 23.08.2013 16:57, schrieb Yongbok Kim: >> A parenthesis placed inappropriately caused displaying >> wrong memory size bigger than 4GB. >> >> Signed-off-by: Yongbok Kim >> --- >> hw/mips/mips_malta.c |2 +- >> hw/mips/mips_r4k.c|2 +

[Qemu-devel] [PATCH V20 6/8] Make block-cache.c be common interface

2013-08-25 Thread Dong Xu Wang
To use block-cache.c be common cache interface, we need to add some parameter to identify cache's type. Define a struct named BlockTableType, pass BlockTableType and table size parameters to block cache initialization function. v17-v18: 1) move struct to source file. 2) cluster_size->table_size.

[Qemu-devel] [PATCH V20 5/8] move qcow2-cache.c to block-cache.c

2013-08-25 Thread Dong Xu Wang
Will use block cache as common interface, so move qcow2-cache.c to block-cache.c, Signed-off-by: Dong Xu Wang --- block/Makefile.objs | 3 +- block/block-cache.c | 323 block/qcow2-cache.c | 323 --

[Qemu-devel] [PATCH V20 7/8] add-cow file format core code

2013-08-25 Thread Dong Xu Wang
add-cow file format core code. It use block-cache.c as cache code. It lacks of snapshot_blkdev support. v18->v19: 1) add aio parallel write support. 2) fix flush method. v17-v18: 1) use error_report, not fprintf. 2) remove version field from header. 3) header_size is MAX(cluster_size, 4096). 4) i

Re: [Qemu-devel] [PATCH] hw: fix to display correct memory size

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 15:57, Yongbok Kim wrote: > A parenthesis placed inappropriately caused displaying > wrong memory size bigger than 4GB. > > Signed-off-by: Yongbok Kim Acked-by: Alexander Graf I think this should easily go in through the qemu-trivial queue. Alex > --- > hw/mips/mips_malt

[Qemu-devel] [PATCH V20 4/8] rename qcow2_cache functions to block_cache

2013-08-25 Thread Dong Xu Wang
This patch only rename qcow2_cache* functions to block_cache*, did not touch other code. Signed-off-by: Dong Xu Wang --- block/qcow2-cache.c| 70 +- block/qcow2-cluster.c | 48 +- block/qcow2-refcount.c | 42 +++

[Qemu-devel] [PATCH V20 2/8] make path_has_protocol non static

2013-08-25 Thread Dong Xu Wang
We will use path_has_protocol outside block.c, so just make it public. Reviewed-by: Michael Roth Signed-off-by: Dong Xu Wang --- block.c | 2 +- include/block/block.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index fcc8870..b2711e9 1006

[Qemu-devel] [PATCH V20 8/8] qemu-iotests: add add-cow iotests support

2013-08-25 Thread Dong Xu Wang
This patch will use qemu-iotests to test add-cow file format. v17-v18: 1) add 037 and 038 tests. Signed-off-by: Dong Xu Wang --- tests/qemu-iotests/017 | 2 +- tests/qemu-iotests/020 | 2 +- tests/qemu-iotests/037 | 2 +- tests/qemu-iotests/038 | 2 +- tests/qemu-iot

[Qemu-devel] [PATCH V20 0/7] add-cow file format

2013-08-25 Thread Dong Xu Wang
It will introduce a new file format: add-cow. The add-cow file format makes it possible to perform copy-on-write on top of a raw disk image. When we know that no backing file clusters remain visible (e.g. we have streamed the entire image and copied all data from the backing file), then it is pos

[Qemu-devel] [PATCH V20 3/8] qed_read_string to bdrv_read_string

2013-08-25 Thread Dong Xu Wang
Make qed_read_string function to a common interface, so move it to block.c. Signed-off-by: Dong Xu Wang --- block.c | 27 +++ block/qed.c | 34 -- include/block/block.h | 2 ++ 3 files changed, 33 insertions(+), 30

  1   2   >