[Qemu-devel] Training program for your software

2011-10-07 Thread OCS Partners
Dear Sir or Madam,   I noticed that your company provides Open Source software, but does not appear to have training for this software.  My organization, One Course Source, is a training development and instructional staf

[Qemu-devel] [Bug 722311] Re: Segmentation fault if started without -enable-kvm parameter

2011-10-07 Thread Bug Reporter
The problem reported above was the same up to and including qemu 0.15.0. Meanwhile I found this on the LinuxFromScratch (LFS) bug tracker: "Glibc-2.14 causes segfaults in SDL", http://wiki.linuxfromscratch.org/lfs/ticket/2920 After applying their patch to GLIBC, qemu finally works again on the

Re: [Qemu-devel] QEMU + ARM11MPCore

2011-10-07 Thread Antti P Miettinen
"TusharK" writes: > Hello, > I tried executing QEMU (realview-smp ARM11MPCore) with Linux kernel 2.6.39.3, > but it failed. Kernel itself is not getting decompressed. I compiled the > kernel with realview-smp_config and build was successful. Can you please let > me know how can test QEMU + ARM11MP

Re: [Qemu-devel] In-kernel emulation

2011-10-07 Thread Xin Tong
I am kind of speculating here. I could be wrong MMU. in the kernel you can manipulate the EPT reg which is normally used by kvm ( introduced by intel vmx, or amd svm). IO, specifically for network packets, they do not need to go to user space, they can be handled to the virtual machine directly.

[Qemu-devel] [PATCH] ui/vnc: Fix use of free() instead of g_free()

2011-10-07 Thread Stefan Weil
Please note that mechlist still uses malloc / strdup / free. Signed-off-by: Stefan Weil --- ui/vnc-auth-sasl.c |8 ui/vnc-enc-hextile.c |4 ++-- ui/vnc-tls.c |2 +- ui/vnc.c |8 4 files changed, 11 insertions(+), 11 deletions(-) diff --git

Re: [Qemu-devel] In-kernel emulation

2011-10-07 Thread 陳韋任
> guest isa is different from host isa in this case. > > Xin > > On Fri, Oct 7, 2011 at 12:33 PM, 陳韋任 wrote: > > > > I am wondering that whether there are any attempts (product-oriented or > > > research-based ) to push QEMU into the Linux kernel to speed up emulation. > > > If the emulation is

Re: [Qemu-devel] [PATCH] tcg: Introduce TCGReg for all TCG hosts (fixes build for s390 hosts)

2011-10-07 Thread Stefan Weil
Am 07.10.2011 20:13, schrieb Richard Henderson: On 10/07/2011 11:00 AM, Stefan Weil wrote: +#define TCGReg int /* TODO: Remove this line when tcg-target.c uses TCGReg. */ Nack. This is too ugly to live. How hard can it be to simply change the prototype in each of the backend files instead? Ye

Re: [Qemu-devel] [PATCH] tcg: Introduce TCGReg for all TCG hosts (fixes build for s390 hosts)

2011-10-07 Thread Richard Henderson
On 10/07/2011 11:00 AM, Stefan Weil wrote: > +#define TCGReg int /* TODO: Remove this line when tcg-target.c uses TCGReg. > */ Nack. This is too ugly to live. How hard can it be to simply change the prototype in each of the backend files instead? Yes, full conversion to TCGReg is desirable, bu

[Qemu-devel] [PATCH] tcg: Introduce TCGReg for all TCG hosts (fixes build for s390 hosts)

2011-10-07 Thread Stefan Weil
s390 already uses TCGReg - this patch defines TCGReg for all other TCG targets. The targets still don't use TCGReg, therefore a temporary define maps 'TCGReg' to 'int' for all unfinished targets. This define allows usage of TCGReg in tcg.c thus fixing some forward declarations which had broken co

Re: [Qemu-devel] [PATCH] Make cpu_single_env thread local (Linux only for now)

2011-10-07 Thread David Gilbert
On 5 October 2011 10:21, Paolo Bonzini wrote: > If interested people can test the patches more and submit them more > formally, I'd be very glad.  I wrote it for RCU, but of course that one is > not really going to be 1.0 material (even for 9p). Hmm this got a bit more complex than the original

Re: [Qemu-devel] In-kernel emulation

2011-10-07 Thread 陳韋任
> I am wondering that whether there are any attempts (product-oriented or > research-based ) to push QEMU into the Linux kernel to speed up emulation. > If the emulation is running in the kernel, there are some resources it can > manipulate to speed up emulation in comparison to the when it is runn

Re: [Qemu-devel] [PATCH v3] Add AACI audio playback support to the ARM Versatile/PB platform

2011-10-07 Thread Peter Maydell
On 29 September 2011 18:31, Mathieu Sonet wrote: > This driver emulates the ARM AACI interface (PL041) connected to a LM4549 > codec. > It enables audio playback for the Versatile/PB platform. > > Limitations: > - Supports only a playback on one channel (Versatile/Vexpress) > - Supports only a TX

[Qemu-devel] [PATCH 0/3] block: zero write detection

2011-10-07 Thread Stefan Hajnoczi
Image streaming copies data from the backing file into the image file. It is important to represent zero regions from the backing file efficiently during streaming, otherwise the image file grows to the full virtual disk size and loses sparseness. There are two ways to implement zero write detect

[Qemu-devel] [PATCH 2/3] qed: add zero write detection support

2011-10-07 Thread Stefan Hajnoczi
The QED image format is able to efficiently represent clusters containing zeroes with a magic offset value. This patch implements zero write detection for allocating writes so that image streaming can copy over zero clusters from a backing file without expanding the image file unnecessarily. This

[Qemu-devel] [PATCH 1/3] block: add zero write detection interface

2011-10-07 Thread Stefan Hajnoczi
Some image formats can represent zero regions efficiently even when a backing file is present. In order to use this feature they need to detect zero writes and handle them specially. Since zero write detection consumes CPU cycles it is disabled by default and must be explicitly enabled. This pat

[Qemu-devel] [PATCH 3/3] qemu-io: add zero write detection option

2011-10-07 Thread Stefan Hajnoczi
Add a -z option to qemu-io and the 'open' command to enable zero write detection. This is used by the qemu-iotests 029 test case and allows scripts to exercise zero write detection. Signed-off-by: Stefan Hajnoczi --- qemu-io.c | 35 --- 1 files changed, 28 inse

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-07 Thread Jan Kiszka
On 2011-10-07 16:05, Wen Congyang wrote: > 于 2011/10/7 20:56, Jan Kiszka 写道: >> On 2011-10-07 14:25, Wen Congyang wrote: >>> 于 2011/10/7 18:16, Jan Kiszka 写道: On 2011-10-07 11:46, Wen Congyang wrote: > Currently, virsh dump uses monitor command migrate to dump guest's memory > to file,

Re: [Qemu-devel] [PATCH 1/4] Add basic version of bridge helper

2011-10-07 Thread Corey Bryant
On 10/07/2011 10:45 AM, Daniel P. Berrange wrote: On Fri, Oct 07, 2011 at 10:40:56AM -0400, Corey Bryant wrote: On 10/07/2011 05:04 AM, Daniel P. Berrange wrote: On Thu, Oct 06, 2011 at 02:38:56PM -0400, Corey Bryant wrote: On 10/06/2011 02:04 PM, Anthony Liguori wrote: On 10/06/2011 11

Re: [Qemu-devel] [PATCH 1/4] Add basic version of bridge helper

2011-10-07 Thread Corey Bryant
On 10/07/2011 10:45 AM, Daniel P. Berrange wrote: On Fri, Oct 07, 2011 at 10:40:56AM -0400, Corey Bryant wrote: On 10/07/2011 05:04 AM, Daniel P. Berrange wrote: On Thu, Oct 06, 2011 at 02:38:56PM -0400, Corey Bryant wrote: On 10/06/2011 02:04 PM, Anthony Liguori wrote: On 10/06/2011 11

Re: [Qemu-devel] [PATCH 1/4] Add basic version of bridge helper

2011-10-07 Thread Corey Bryant
On 10/07/2011 05:04 AM, Daniel P. Berrange wrote: On Thu, Oct 06, 2011 at 02:38:56PM -0400, Corey Bryant wrote: On 10/06/2011 02:04 PM, Anthony Liguori wrote: On 10/06/2011 11:41 AM, Daniel P. Berrange wrote: On Thu, Oct 06, 2011 at 11:38:25AM -0400, Richa Marwaha wrote: This patch adds a

Re: [Qemu-devel] [PATCH 1/4] Add basic version of bridge helper

2011-10-07 Thread Daniel P. Berrange
On Fri, Oct 07, 2011 at 10:40:56AM -0400, Corey Bryant wrote: > > > On 10/07/2011 05:04 AM, Daniel P. Berrange wrote: > >On Thu, Oct 06, 2011 at 02:38:56PM -0400, Corey Bryant wrote: > >> > >> > >>On 10/06/2011 02:04 PM, Anthony Liguori wrote: > >>>On 10/06/2011 11:41 AM, Daniel P. Berrange wrote

Re: [Qemu-devel] [PATCH] checkpatch: remove rule on non-indented labels

2011-10-07 Thread Peter Maydell
On 7 October 2011 14:59, Paolo Bonzini wrote: > There are 508 non-indented (non-default) labels, and 511 that are > indented.  So the rule is debatable at least.  Actually, in the > common case of labels at the outermost scope, there is really just > one place where to put the label, so the rule i

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-07 Thread Wen Congyang
于 2011/10/7 20:56, Jan Kiszka 写道: On 2011-10-07 14:25, Wen Congyang wrote: 于 2011/10/7 18:16, Jan Kiszka 写道: On 2011-10-07 11:46, Wen Congyang wrote: Currently, virsh dump uses monitor command migrate to dump guest's memory to file, and we can use crash to analyze the file. Unfortunately, vir

[Qemu-devel] [PATCH] checkpatch: remove rule on non-indented labels

2011-10-07 Thread Paolo Bonzini
There are 508 non-indented (non-default) labels, and 511 that are indented. So the rule is debatable at least. Actually, in the common case of labels at the outermost scope, there is really just one place where to put the label, so the rule is just wrong IMHO. Signed-off-by: Paolo Bonzini ---

Re: [Qemu-devel] [PATCH] Set an invalid-bits mask for each SPE instructions

2011-10-07 Thread Fabien Chouteau
On 07/10/2011 14:40, Alexander Graf wrote: > On 09/28/2011 05:54 PM, Fabien Chouteau wrote: >> SPE instructions are defined by pairs. Currently, the invalid-bits mask is >> set >> for the first instruction, but the second one can have a different mask. >> >> example: >> GEN_SPE(efdcmpeq,efdcfs

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-07 Thread Jan Kiszka
On 2011-10-07 14:25, Wen Congyang wrote: > 于 2011/10/7 18:16, Jan Kiszka 写道: >> On 2011-10-07 11:46, Wen Congyang wrote: >>> Currently, virsh dump uses monitor command migrate to dump guest's memory >>> to file, and we can use crash to analyze the file. >>> >>> Unfortunately, virsh dump can not wor

Re: [Qemu-devel] [PATCH 2/2] LAPIC: make lapic support cpu hotplug

2011-10-07 Thread liu ping fan
On 10/6/11, Jan Kiszka wrote: > On 2011-10-06 03:13, liu ping fan wrote: >> On Wed, Oct 5, 2011 at 7:01 PM, Jan Kiszka wrote: >>> On 2011-10-05 12:26, liu ping fan wrote: > > And make the creation of apic as part of cpu initialization, so >> apic's state has been ready, before setting kv

Re: [Qemu-devel] [PATCH] Set an invalid-bits mask for each SPE instructions

2011-10-07 Thread Alexander Graf
On 09/28/2011 05:54 PM, Fabien Chouteau wrote: SPE instructions are defined by pairs. Currently, the invalid-bits mask is set for the first instruction, but the second one can have a different mask. example: GEN_SPE(efdcmpeq,efdcfs, 0x17, 0x0B, 0x0060, 0x0018, PPC_SPE_DOUBLE),

[Qemu-devel] In-kernel emulation

2011-10-07 Thread Xin Tong
I am wondering that whether there are any attempts (product-oriented or research-based ) to push QEMU into the Linux kernel to speed up emulation. If the emulation is running in the kernel, there are some resources it can manipulate to speed up emulation in comparison to the when it is running as a

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-07 Thread Wen Congyang
于 2011/10/7 18:16, Jan Kiszka 写道: On 2011-10-07 11:46, Wen Congyang wrote: Currently, virsh dump uses monitor command migrate to dump guest's memory to file, and we can use crash to analyze the file. Unfortunately, virsh dump can not work if guest uses host pci device. The reason is that the de

Re: [Qemu-devel] [PATCH] pcnet: Add link state support

2011-10-07 Thread Jan Kiszka
On 2011-10-07 12:27, Jan Kiszka wrote: > Update lnkst on link state changes so that guests can obtain this > information via reading back the LED output pin. Works for Linux but > not for guests that depend on the missing PHY. Strike the second sentence: The older Am79C970A that QEMU emulated prov

Re: [Qemu-devel] [PATCH] Raise 9pfs mount_tag limit from 32 to 255 bytes

2011-10-07 Thread Aneesh Kumar K.V
On Fri, 7 Oct 2011 10:27:56 +0100, "Daniel P. Berrange" wrote: > On Thu, Sep 29, 2011 at 04:22:16PM +0100, Daniel P. Berrange wrote: > > On Thu, Sep 29, 2011 at 08:23:49PM +0530, Aneesh Kumar K.V wrote: > > > On Thu, 29 Sep 2011 11:34:21 +0100, "Daniel P. Berrange" > > > wrote: > > > > From: "D

[Qemu-devel] [PATCH 2/5] savevm: some coding style cleanups

2011-10-07 Thread Juan Quintela
This patch will make moving code on next patches and having checkpatch happy easier. Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori Signed-off-by: Juan Quintela --- savevm.c | 21 ++--- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/savevm.c b/savev

[Qemu-devel] [PATCH 5/5] Revert "savevm: fix corruption in vmstate_subsection_load()."

2011-10-07 Thread Juan Quintela
This reverts commit eb60260de0b050a5e8ab725e84d377d0b44c43ae. Conflicts: savevm.c We changed qemu_peek_byte() prototype, just fixed the rejects. Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori Signed-off-by: Juan Quintela --- savevm.c | 10 +- 1 files changed, 1 i

[Qemu-devel] [PATCH 3/5] savevm: define qemu_get_byte() using qemu_peek_byte()

2011-10-07 Thread Juan Quintela
Signed-off-by: Juan Quintela Signed-off-by: Juan Quintela --- savevm.c | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/savevm.c b/savevm.c index 4069b34..94628c6 100644 --- a/savevm.c +++ b/savevm.c @@ -578,17 +578,14 @@ static int qemu_peek_byte(QEMUFile *f

[Qemu-devel] [PATCH 4/5] savevm: improve subsections detection on load

2011-10-07 Thread Juan Quintela
We add qemu_peek_buffer, that is identical to qemu_get_buffer, just that it don't update f->buf_index. We add a paramenter to qemu_peek_byte() to be able to peek more than one byte. Once this is done, to see if we have a subsection we look: - 1st byte is QEMU_VM_SUBSECTION - 2nd byte is a length,

[Qemu-devel] [PATCH v3 0/5] migration: Improve subsections detection

2011-10-07 Thread Juan Quintela
Hi v3: - fix return value on qemu_get_buffer. Anthony, all reviewers comments are fixed, please consider to apply. Later, Juan. v2: - rename "used" to "remaining" (Alex suggestion) - implement qemu_get_{byte,buffer} on top of qemu_peek_{byte, buffer} (Anthony suggestion) - fix qemu_peek_buffe

[Qemu-devel] [PATCH 1/5] savevm: teach qemu_fill_buffer to do partial refills

2011-10-07 Thread Juan Quintela
We will need on next patch to be able to lookahead on next patch v2: rename "used" to "pending" (Alex Williams) Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori Signed-off-by: Juan Quintela --- savevm.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --g

[Qemu-devel] [PATCH] pcnet: Add link state support

2011-10-07 Thread Jan Kiszka
Update lnkst on link state changes so that guests can obtain this information via reading back the LED output pin. Works for Linux but not for guests that depend on the missing PHY. Signed-off-by: Jan Kiszka --- hw/lance.c |1 + hw/pcnet-pci.c |1 + hw/pcnet.c |7 +++ hw/

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-07 Thread Jan Kiszka
On 2011-10-07 11:46, Wen Congyang wrote: > Currently, virsh dump uses monitor command migrate to dump guest's memory > to file, and we can use crash to analyze the file. > > Unfortunately, virsh dump can not work if guest uses host pci device. The > reason is that the device's status is also neede

[Qemu-devel] Logging Memory Writes in Qemu

2011-10-07 Thread Johannes Stuettgen
Hello, i am trying to perform some memory measurements and was hoping you could point me in the right direction: My goal is to log every write access to physical memory, the physical address written as well as the total amount of bytes that are written (modified) in each access. My first ide

[Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-07 Thread Wen Congyang
Currently, virsh dump uses monitor command migrate to dump guest's memory to file, and we can use crash to analyze the file. Unfortunately, virsh dump can not work if guest uses host pci device. The reason is that the device's status is also needed to migrate to remote machine, and the host pci de

Re: [Qemu-devel] [PATCH] Raise 9pfs mount_tag limit from 32 to 255 bytes

2011-10-07 Thread Daniel P. Berrange
On Thu, Sep 29, 2011 at 04:22:16PM +0100, Daniel P. Berrange wrote: > On Thu, Sep 29, 2011 at 08:23:49PM +0530, Aneesh Kumar K.V wrote: > > On Thu, 29 Sep 2011 11:34:21 +0100, "Daniel P. Berrange" > > wrote: > > > From: "Daniel P. Berrange" > > > > > > The Linux guest kernel does not appear to

Re: [Qemu-devel] [PATCH 1/4] Add basic version of bridge helper

2011-10-07 Thread Daniel P. Berrange
On Thu, Oct 06, 2011 at 02:38:56PM -0400, Corey Bryant wrote: > > > On 10/06/2011 02:04 PM, Anthony Liguori wrote: > >On 10/06/2011 11:41 AM, Daniel P. Berrange wrote: > >>On Thu, Oct 06, 2011 at 11:38:25AM -0400, Richa Marwaha wrote: > >>>This patch adds a helper that can be used to create a tap

Re: [Qemu-devel] qemu guest agent spins in poll/nanosleep(100ms) when nothing is listening on host

2011-10-07 Thread Daniel P. Berrange
On Thu, Oct 06, 2011 at 04:15:07PM -0500, Michael Roth wrote: > On Thu, 6 Oct 2011 12:31:05 +0100, "Daniel P. Berrange" > wrote: > > I get the feeling that this kind of problem inherant in the use of any > > virtio-serial channel, in the same way you can't detect EOF for a regular > > serial devi

[Qemu-devel] [PATCH 4/4] scsi-disk: fix retrying a flush

2011-10-07 Thread Paolo Bonzini
Flush does not go anymore through scsi_disk_emulate_command. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index d6f2345..eb0c679 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@

[Qemu-devel] [PATCH 3/4] scsi-disk: bump SCSIRequest reference count until aio completion runs

2011-10-07 Thread Paolo Bonzini
In some cases a request may be canceled before the completion callback runs. Keep a reference to the request between starting an AIO operation, and let scsi_*_complete remove it. Since scsi_handle_rw_error returns whether something else has to be done for the request by the caller, it makes sense

[Qemu-devel] [PATCH 0/4] scsi: miscellaneous fixes

2011-10-07 Thread Paolo Bonzini
The most important part is a fix for use-after-free that I found while testing CD-ROM eject. Paolo Bonzini (4): scsi-disk: fail READ CAPACITY if LBA != 0 but PMI == 0 scsi-disk: do not complete requests twice scsi-disk: bump SCSIRequest reference count until aio completion runs scsi-disk:

[Qemu-devel] [PATCH 1/4] scsi-disk: fail READ CAPACITY if LBA != 0 but PMI == 0

2011-10-07 Thread Paolo Bonzini
Tested by the Windows Logo Kit SCSI Compliance test. From SBC-3, paragraph 5.25: "The LOGICAL BLOCK ADDRESS field shall be set to zero if the PMI bit is set to zero. If the PMI bit is set to zero and the LOGICAL BLOCK ADDRESS field is not set to zero, then the device server shall terminate the comm

[Qemu-devel] [PATCH 2/4] scsi-disk: do not complete requests twice

2011-10-07 Thread Paolo Bonzini
When scsi_handle_rw_error reports a CHECK CONDITION code, the owner should not call scsi_req_complete. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 4757a02..6497655 100644 --- a/hw

[Qemu-devel] [PATCH v2 08/23] i8239: Introduce per-PIC output interrupt

2011-10-07 Thread Jan Kiszka
As a first step towards more generic master-slave support, remove parent_irq in favor of a per-PIC output interrupt line. The slave's line is attached to IRQ2 of the master, but it remains unused for now. Signed-off-by: Jan Kiszka --- hw/i8259.c | 21 - 1 files changed, 12

[Qemu-devel] [PATCH v2 15/23] i8259: Clean up pic_ioport_read

2011-10-07 Thread Jan Kiszka
Drop redundant local address variable. Signed-off-by: Jan Kiszka --- hw/i8259.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 31962c0..545d723 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -385,11 +385,10 @@ static uint32_t pic_poll_read(P

[Qemu-devel] [PATCH v2 10/23] i8259: Reorder intack in pic_read_irq

2011-10-07 Thread Jan Kiszka
As we want to move the IRQ update to pic_intack, ordering matters: the slave ack must be executed before the master ack to avoid missing further pending slave IRQs. Signed-off-by: Jan Kiszka --- hw/i8259.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/i8259

[Qemu-devel] [PATCH v2 18/23] i8259: Eliminate PicState2

2011-10-07 Thread Jan Kiszka
Introduce a reference to the slave PIC for the few cases we need to access it without a proper pointer at hand and drop PicState2. We could even live without slave_pic if we had a better way of modeling the cascade bus the PICs are attached to (in addition to the ISA bus). Signed-off-by: Jan Kiszk

[Qemu-devel] [PATCH v2 16/23] i8259: PREP: Replace pic_intack_read with pic_read_irq

2011-10-07 Thread Jan Kiszka
There is nothing in the i8259 spec that justifies the special pic_intack_read. At least the Linux PREP kernels configure the PICs properly so that pic_read_irq returns identical values, and setting read_reg_select in PIC0 cannot be derived from any special i8259 mode. So switch ppc_prep to pic_rea

Re: [Qemu-devel] [PATCH v2 19/23] qdev: Add HEX8 property

2011-10-07 Thread Andreas Färber
Am 07.10.2011 09:19, schrieb Jan Kiszka: Signed-off-by: Jan Kiszka Reviewed-by: Andreas Färber If you resend the series, a one-sentence description would be nice. Andreas --- hw/qdev-properties.c | 29 + hw/qdev.h|3 +++ 2 files changed, 32

[Qemu-devel] [PATCH v2 23/23] i8259: Move to hw library

2011-10-07 Thread Jan Kiszka
No target-specific bits remaining, let's move it over. Signed-off-by: Jan Kiszka --- Makefile.objs|1 + Makefile.target |8 default-configs/alpha-softmmu.mak|1 + default-configs/i386-softmmu.mak |1 + default-configs/

Re: [Qemu-devel] Integrating Dynamips and GNS3 UDP tunnels (Patches)

2011-10-07 Thread Jan Kiszka
On 2011-10-06 19:08, Benjamin Epitech wrote: > GNS3 team developed a GUI in order to inter-connect different emulated > hardware. In order > to achieve a network inter-connection between each hosts, one single > protocol is used: an > UDP tunneling protocol introduced by Dynamips (a cisco hardware

[Qemu-devel] [PATCH v2 01/23] pc: Drop useless test from isa_irq_handler

2011-10-07 Thread Jan Kiszka
IsaIrqState::ioapic is always non-NULL. Probably, the concrete qemu_irq was supposed to be tested, but that's already done by qemu_set_irq. Signed-off-by: Jan Kiszka --- hw/pc.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 203627d..a15d165

[Qemu-devel] [PATCH v2 14/23] i8259: Fix poll command

2011-10-07 Thread Jan Kiszka
This was probably never used so far: According to the spec, polling means ack'ing the pending IRQ and setting its corresponding bit in isr. Moreover, we have to signal a pending IRQ via bit 7 of the returned value, and we must not return a spurious IRQ if none is pending. This implements the poll

[Qemu-devel] [PATCH v2 17/23] i8259: Replace PicState::pics_state with master flag

2011-10-07 Thread Jan Kiszka
This reflects how real PICs indentify their role (in non-buffered mode): Pass the state of the /SP input on pic_init and use it instead of pics_state to differentiate between master and slave mode. Signed-off-by: Jan Kiszka --- hw/i8259.c | 18 +- 1 files changed, 9 insertions(

[Qemu-devel] [PATCH v2 13/23] i8259: Switch to per-PIC IRQ update

2011-10-07 Thread Jan Kiszka
This converts pic_update_irq to work against a single PIC instead of the complete cascade. Along this change, the required update after pic_set_irq1 is now moved into that function. Signed-off-by: Jan Kiszka --- hw/i8259.c | 59 --- 1 fil

Re: [Qemu-devel] [PATCH 3/3] pseries: Correctly create ibm, segment-page-sizes property

2011-10-07 Thread Alexander Graf
On 30.09.2011, at 09:50, David Gibson wrote: > Current versions of the PowerPC architecture require and fully define > 4kB and 16MB page sizes. Other pagesizes (e.g. 64kB, 1MB) are > permitted and are often supported, but the exact encodings used to set > the up can vary from chip to chip. > >

[Qemu-devel] [PATCH v2 06/23] i8259: Drop obsolete prototypes

2011-10-07 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- hw/pc.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index 60da282..fd5f9b2 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -62,8 +62,6 @@ bool parallel_mm_init(target_phys_addr_t base, int it_shift, qemu_irq irq, typedef stru

[Qemu-devel] [PATCH v2 05/23] i8259: Remove premature inline function attributes

2011-10-07 Thread Jan Kiszka
The compiler is smarter in choosing the right optimization. Signed-off-by: Jan Kiszka --- hw/i8259.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 6006123..f1d58ba 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -80,7 +80,7 @@ static uint

[Qemu-devel] [PATCH] s390x: Add shutdown for TCG s390-virtio machine

2011-10-07 Thread Alexander Graf
Now that we have code in place to do refcounting of online CPUs, we can drag the TCG code along and implement shutdown for that one too, so it doesn't feel left out by its KVM counterpart. Signed-off-by: Alexander Graf --- target-s390x/cpu.h|9 + target-s390x/helper.c | 15

[Qemu-devel] [PATCH v2 09/23] i8259: Do not update IRQ output after spurious pic_poll_read

2011-10-07 Thread Jan Kiszka
If pic_poll_read finds no pending IRQ and return a spurious one instead, no PIC state is changed, thus we do not need to call pic_update_irq. Signed-off-by: Jan Kiszka --- hw/i8259.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 65123bd..c

[Qemu-devel] [PATCH v2 21/23] i8259: Fix coding style

2011-10-07 Thread Jan Kiszka
No functional changes. Signed-off-by: Jan Kiszka --- hw/i8259.c | 54 ++ 1 files changed, 34 insertions(+), 20 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index b4e1867..ab519de 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -67,7 +67,7 @

[Qemu-devel] [PATCH v2 04/23] pc: Fix and clean up PIC-to-APIC IRQ path

2011-10-07 Thread Jan Kiszka
The master PIC is connected to the LINTIN0 of the APICs. As the APIC currently does not track the state of that line, we have to ask the PIC to reinject its IRQ after the CPU picked up an event from the APIC. This introduces pic_get_output to read the master PIC IRQ line state without changing it.

[Qemu-devel] [PATCH v2 12/23] i8259: Clear ELCR on reset

2011-10-07 Thread Jan Kiszka
The ELCR is actually part of the chipset but we model it here for simplicity reasons. The PIIX3 clears the ELCR on reset, which was once broken by 4dbe19e181. Fix this by splitting up pic_init_reset from pic_reset and clearing the register in the latter. Signed-off-by: Jan Kiszka --- hw/i8259.c

[Qemu-devel] [PATCH v2 07/23] i8259: Move pic_set_irq1 after pic_update_irq

2011-10-07 Thread Jan Kiszka
We are about to call the latter from the former. No functional changes. Signed-off-by: Jan Kiszka --- hw/i8259.c | 55 +-- 1 files changed, 29 insertions(+), 26 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index f1d58ba..de2d5ca 100644

[Qemu-devel] [PATCH][uq/master] kvm: Add tool for querying VMX capabilities

2011-10-07 Thread Jan Kiszka
Taken from original qemu-kvm/kvm/scripts/vmxcap. Signed-off-by: Jan Kiszka --- scripts/kvm/vmxcap | 224 1 files changed, 224 insertions(+), 0 deletions(-) create mode 100755 scripts/kvm/vmxcap diff --git a/scripts/kvm/vmxcap b/scripts/kvm/

[Qemu-devel] [PATCH][uq/master] kvm: Add top-like kvm statistics script

2011-10-07 Thread Jan Kiszka
Taken from original qemu-kvm/kvm/kvm_stat. Signed-off-by: Jan Kiszka --- scripts/kvm/kvm_stat | 480 ++ 1 files changed, 480 insertions(+), 0 deletions(-) create mode 100755 scripts/kvm/kvm_stat diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kv

Re: [Qemu-devel] [PATCHv3] s390: Fix cpu shutdown for KVM

2011-10-07 Thread Alexander Graf
On 04.10.2011, at 17:20, Christian Borntraeger wrote: > On s390 a shutdown is the state of all CPUs being either stopped > or disabled (for interrupts) waiting. We have to track the overall > number of running CPUs to call the shutdown sequence accordingly. > This patch implements the counting an

[Qemu-devel] [PATCH v2 11/23] i8259: Update IRQ state after reset

2011-10-07 Thread Jan Kiszka
MIPS and PPC users of the i8259 output signal expect us to report state updates also after reset. As no consumer (including the master PIC) can misinterpret the deassert as an activation event, it is safe to simply update the IRQ state after reset. Signed-off-by: Jan Kiszka --- hw/i8259.c |3

[Qemu-devel] [PATCH v2 20/23] i8259: Convert to qdev

2011-10-07 Thread Jan Kiszka
This key cleanup step requires to move the IRQ debugging bit from i8259_set_irq directly to the per-PIC pic_set_irq, to pass the PIC parameters (I/O base, ELCR address and mask, master/slave mode) as qdev properties, and to interconnect the PICs with their environment via GPIO pins. Signed-off-by:

[Qemu-devel] [PATCH v2 19/23] qdev: Add HEX8 property

2011-10-07 Thread Jan Kiszka
Signed-off-by: Jan Kiszka --- hw/qdev-properties.c | 29 + hw/qdev.h|3 +++ 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index e0e54aa..f0b811c 100644 --- a/hw/qdev-properties.c +++ b/hw/q

[Qemu-devel] [PATCH v2 22/23] monitor: Restrict pic/irq_info to supporting targets

2011-10-07 Thread Jan Kiszka
Signed-off-by: Jan Kiszka Acked-by: Blue Swirl --- hw/an5206.c | 10 -- hw/arm_pic.c| 11 --- hw/cris_pic_cpu.c |6 -- hw/etraxfs.h|1 + hw/lm32_pic.c |4 ++-- hw/lm32_pic.h |3 +++ hw/microblaz

[Qemu-devel] [PATCH v2 02/23] pc: Generalize ISA IRQs to GSIs

2011-10-07 Thread Jan Kiszka
The ISA bus IRQ range is 0..15. What isa_irq_handler and IsaIrqState are actually dealing with are the Global System Interrupts. Refactor the code to clarify this. Signed-off-by: Jan Kiszka --- hw/ioapic.h |7 +++ hw/isa.h |2 ++ hw/pc.c | 18 +- hw/pc.h

[Qemu-devel] [PATCH v2 00/23] Rework i8259 and PC interrupt models

2011-10-07 Thread Jan Kiszka
Highlights of this series: - generic i8259, now part of hwlib - qdev conversion of i8259 - fix for i8259 poll mode (and removal of PREP hack) The refactoring will also be important to instantiate i8259-kvm devices for in-kernel irqchip acceleration one day. Changes in v2: - kept PIC irq state

[Qemu-devel] [PATCH v2 03/23] pc: Convert GSIState::i8259_irq into array

2011-10-07 Thread Jan Kiszka
Will be required when we no longer let i8259_init allocate the PIC IRQs but convert that chips to qdev. Signed-off-by: Jan Kiszka --- hw/pc.h |2 +- hw/pc_piix.c |4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index 4333898..2870be4 100644 -

Re: [Qemu-devel] [0/4] pseries: Support and improvements for KVM Book3S-HV support (v2)

2011-10-07 Thread Alexander Graf
On 30.09.2011, at 09:39, David Gibson wrote: > Alex Graf has added support for KVM acceleration of the pseries > machine, using his Book3S-PR KVM variant, which runs the guest in > userspace, emulating supervisor operations. Recent kernels now have > the Book3S-HV KVM variant which uses the hard

[Qemu-devel] [PATCH] qemu-kvm: Restore VAPIC option ROM installation

2011-10-07 Thread Jan Kiszka
Still needed but was accidentally removed by 8bc62bc6be. Signed-off-by: Jan Kiszka --- As the guilty patch is only in next so far, you may also fold this one in. hw/pc.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index a616029..70e0d08 100644