Re: [Qemu-devel] [TestDays] s390x emulation error

2011-11-13 Thread Paolo Bonzini
On 11/12/2011 11:08 AM, Andreas Färber wrote: diff --git a/main-loop.c b/main-loop.c index 60e9748..2ab5023 100644 --- a/main-loop.c +++ b/main-loop.c @@ -460,7 +460,7 @@ int main_loop_wait(int nonblocking) } glib_select_poll(&rfds,&wfds,&xfds, (ret< 0)); -qemu_iohandler_poll(&

Re: [Qemu-devel] [PATCH] [SPARC] Improve "ta 0" shutdown

2011-11-13 Thread Blue Swirl
On Thu, Nov 3, 2011 at 15:17, Fabien Chouteau wrote: > This patch replace the previous implementation with this simplified and > more complete version (no shutdown when psret == 1). In order to get in 1.0, the change should be limited to adding only a psret check to current helper_shutdown(). Thi

Re: [Qemu-devel] [RFC] vmstate: Add copyrights for all cpus

2011-11-13 Thread Blue Swirl
On Mon, Nov 7, 2011 at 17:38, Juan Quintela wrote: > Hi > > This patch adds copyrights to all the machine description files for > all architectures supported. (this is done on top of my vmstate-cpus > series patches) The problem? > > - What should we put as "copyirght" owners. > > Althought I modi

[Qemu-devel] [PULL 1.0 0/1] 'info mtree' fix

2011-11-13 Thread Avi Kivity
Fix a segfault due to incorrect usage of QTAILQ_FOREACH_SAFE(). Avi Kivity (1): memory: fix 'info mtree' segfaults memory.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- 1.7.7.1

[Qemu-devel] [PATCH 1.0 1/1] memory: fix 'info mtree' segfaults

2011-11-13 Thread Avi Kivity
'info mtree' accesses invalid memory in two cases, both due to incorrect (and unsafe) usage of QTAILQ_FOREACH_SAFE(). Reported-by: Andreas Färber Signed-off-by: Avi Kivity --- memory.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/memory.c b/memory.c index c0c1d12.

Re: [Qemu-devel] [PULL 1.0 0/1] 'info mtree' fix

2011-11-13 Thread Avi Kivity
On 11/13/2011 12:06 PM, Avi Kivity wrote: > Fix a segfault due to incorrect usage of QTAILQ_FOREACH_SAFE(). > > Avi Kivity (1): > memory: fix 'info mtree' segfaults > > memory.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > Gaaah. If it isn't generated by git request-pull,

Re: [Qemu-devel] [PULL 00/16] s390 patch queue 2011-11-11 for 1.0

2011-11-13 Thread Blue Swirl
On Fri, Nov 11, 2011 at 17:49, Alexander Graf wrote: > Hi Blue, > > This is my current patch queue for s390. Please pull. > > It contains a few features, but only because I forgot to send out > a pull request for -rc1. These have been lying in my queue for a > while. These don't look much like 1.

Re: [Qemu-devel] [ICON] QEMU Mascot Contest v.2

2011-11-13 Thread Blue Swirl
2011/11/12 陳韋任 : >> Which character fonts did you use for 'Q' and for 'emu' >> in QEMU_Mascot_embody_text.svg? > >  Andalus for 'Q' and Berlin Sans FB for 'emu'. > >> It might be interesting to try 'emu' rotated by about -60 degree >> (in the direction of the egg shaped body). > >  This direction?

Re: [Qemu-devel] [ICON] QEMU Mascot Contest v.2

2011-11-13 Thread Blue Swirl
On Sat, Nov 12, 2011 at 14:06, Stefan Weil wrote: > Am 12.11.2011 12:37, schrieb 陳韋任: >>> >>> Which character fonts did you use for 'Q' and for 'emu' >>> in QEMU_Mascot_embody_text.svg? >> >> Andalus for 'Q' and Berlin Sans FB for 'emu'. >> >>> It might be interesting to try 'emu' rotated by about

[Qemu-devel] [PATCH 1.0] x86: fix pcmpestrm and pcmpistrm

2011-11-13 Thread Blue Swirl
Fix obvious typos (decrement and off-by-one error) in pcmpestrm and pcmpistrm which resulted in infinite loop. Reported by Frank Mehnert, spotted also by Coverity (bug 84752853). Reported-by: Frank Mehnert Signed-off-by: Blue Swirl --- target-i386/ops_sse.h | 12 1 files changed,

[Qemu-devel] INVLPG and IPI emulation in KVM

2011-11-13 Thread Xin Tong
I am investigating how INVLPG is emulated in kvm. It turns out that it calls kvm_mmu_invlpg kvm_mmu_flush_tlb kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); and the kvm_make_request set the vcpu->requests bit to high, when the guest os resumes, it handles the bit. I have 2 questions 1. How

Re: [Qemu-devel] INVLPG and IPI emulation in KVM

2011-11-13 Thread Avi Kivity
On 11/13/2011 02:27 PM, Xin Tong wrote: > I am investigating how INVLPG is emulated in kvm. You're on the wrong list. > It turns out that it calls > > kvm_mmu_invlpg >kvm_mmu_flush_tlb > kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu); > > and the kvm_make_request set the vcpu->requests bit t

Re: [Qemu-devel] [fedora-virt] Windows KVM thinks hardware changed when ported to f16?

2011-11-13 Thread Avi Kivity
On 11/13/2011 02:41 PM, Alon Levy wrote: > On Sun, Nov 13, 2011 at 12:29:01PM +0200, Avi Kivity wrote: > > On 11/12/2011 07:19 PM, Alon Levy wrote: > > > On Sat, Nov 12, 2011 at 09:22:27AM -0500, Tom Horsley wrote: > > > > I just submitted this bug: > > > > > > > > https://bugzilla.redhat.com/show

Re: [Qemu-devel] [ICON] QEMU Mascot Contest

2011-11-13 Thread Stefan Weil
Am 13.11.2011 11:33, schrieb Blue Swirl: On Sat, Nov 12, 2011 at 14:06, Stefan Weil wrote: Am 12.11.2011 12:37, schrieb 陳韋任: Which character fonts did you use for 'Q' and for 'emu' in QEMU_Mascot_embody_text.svg? Andalus for 'Q' and Berlin Sans FB for 'emu'. It might be interesting to try 'e

[Qemu-devel] [RFC 1.0] pc_piix: set qxl revision to 2 for pc-0.14

2011-11-13 Thread Alon Levy
The default is still 3, and I didn't change older machine types. Signed-off-by: Alon Levy --- Is there a better way then copy pasting this to the older pc types to get the revision == 2 for them as well? hw/pc_piix.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff -

[Qemu-devel] [Bug 889827] [NEW] Qemu hangs on loadvm

2011-11-13 Thread Arsky Arsen
Public bug reported: Hello. I'm new here but I believe this is a bug in Qemu since I did nothing special and it stoped to work. Please excuse me if this is not a bug but my error. Suddenly loadvm command stoped to work. It restores state (I see this in SDL window) and after that Qemu hangs, you

Re: [Qemu-devel] [PULL 00/16] s390 patch queue 2011-11-11 for 1.0

2011-11-13 Thread Anthony Liguori
On 11/13/2011 04:09 AM, Blue Swirl wrote: On Fri, Nov 11, 2011 at 17:49, Alexander Graf wrote: Hi Blue, This is my current patch queue for s390. Please pull. It contains a few features, but only because I forgot to send out a pull request for -rc1. These have been lying in my queue for a whil

Re: [Qemu-devel] [fedora-virt] Windows KVM thinks hardware changed when ported to f16?

2011-11-13 Thread Alon Levy
On Sun, Nov 13, 2011 at 02:48:32PM +0200, Avi Kivity wrote: > On 11/13/2011 02:41 PM, Alon Levy wrote: > > On Sun, Nov 13, 2011 at 12:29:01PM +0200, Avi Kivity wrote: > > > On 11/12/2011 07:19 PM, Alon Levy wrote: > > > > On Sat, Nov 12, 2011 at 09:22:27AM -0500, Tom Horsley wrote: > > > > > I just

Re: [Qemu-devel] [fedora-virt] Windows KVM thinks hardware changed when ported to f16?

2011-11-13 Thread Avi Kivity
On 11/13/2011 04:00 PM, Alon Levy wrote: > On Sun, Nov 13, 2011 at 02:48:32PM +0200, Avi Kivity wrote: > > On 11/13/2011 02:41 PM, Alon Levy wrote: > > > On Sun, Nov 13, 2011 at 12:29:01PM +0200, Avi Kivity wrote: > > > > On 11/12/2011 07:19 PM, Alon Levy wrote: > > > > > On Sat, Nov 12, 2011 at 09

Re: [Qemu-devel] [fedora-virt] Windows KVM thinks hardware changed when ported to f16?

2011-11-13 Thread Alon Levy
On Sun, Nov 13, 2011 at 04:03:56PM +0200, Avi Kivity wrote: > On 11/13/2011 04:00 PM, Alon Levy wrote: > > On Sun, Nov 13, 2011 at 02:48:32PM +0200, Avi Kivity wrote: > > > On 11/13/2011 02:41 PM, Alon Levy wrote: > > > > On Sun, Nov 13, 2011 at 12:29:01PM +0200, Avi Kivity wrote: > > > > > On 11/1

[Qemu-devel] [PATCH] hw/pxa2xx.c: Fix handling of RW bits in PMCR

2011-11-13 Thread Peter Maydell
Fix an error in commit afd4a6522 which meant that writing a zero to the RW bits in the PMCR wouldn't actually clear them. (Error spotted by Andrzej Zaborowski.) Signed-off-by: Peter Maydell --- This fixes the bug Andrzej pointed out in comments on the earlier patch; sorry about this error. I opte

Re: [Qemu-devel] [fedora-virt] Windows KVM thinks hardware changed when ported to f16?

2011-11-13 Thread Avi Kivity
On 11/13/2011 04:17 PM, Alon Levy wrote: > > > Going after each distribution that packages qemu? No way to do this, I > > > can just hope any packager who encounters this problem comes to > > > spice-devel/qemu-devel. > > > > > > > > > > I'm talking about guests. Images created with 0.15 know tha

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

2011-11-13 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 05/13] s390x: implement rrbe instruction properly

2011-11-13 Thread Alexander Graf
The rrbe instruction resets the reference bit in the given storage key. So far, we merely made it a nop and also returned an invalid CC value, so that the kernel never knew if a page actually got accessed. This patch implements it properly, flushing the R bit and returning the correct CC value. S

[Qemu-devel] [PULL 00/13] s390 patch queue 2011-11-13 1.0

2011-11-13 Thread Alexander Graf
Hi Blue, This is my current patch queue for s390 on 1.0. Please pull. I removed the hotplug "feature" (thanks a lot to everyone nacking patches without suggesting real fixes). The rest is s390 material only so my concern and the 2 tcg patches I mentioned earlier. Alex The following changes sin

[Qemu-devel] [PATCH 02/13] s390x: add ldeb instruction

2011-11-13 Thread Alexander Graf
While running perl, we encountered the ldeb instruction to be used, so we implement it :). Signed-off-by: Alexander Graf --- target-s390x/helpers.h |1 + target-s390x/op_helper.c |9 + target-s390x/translate.c |4 3 files changed, 14 insertions(+), 0 deletions(-) diff

[Qemu-devel] [Bug 889868] [NEW] CM_CTRL always reads as 0x00000000 (arm/integratorcp)

2011-11-13 Thread Steven G. Messervey
Public bug reported: qemu -version: QEMU PC emulator version 0.12.5, Copyright (c) 2003-2008 Fabrice Bellard uname -a: Linux zenwalk 2.6.37.4 #1 SMP PREEMPT Fri Mar 18 18:17:50 CET 2011 i686 Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz GenuineIntel GNU/Linux command-line: qemu-system-arm -M i

[Qemu-devel] [PATCH 11/13] tcg: Standardize on TCGReg as the enum for hard registers

2011-11-13 Thread Alexander Graf
From: Richard Henderson Most targets did not name the enum; tci used TCGRegister. Signed-off-by: Richard Henderson Reviewed-by: Andreas Färber Reviewed-by: Stefan Weil Signed-off-by: Alexander Graf --- tcg/arm/tcg-target.h |4 ++-- tcg/hppa/tcg-target.h |4 ++-- tcg/i386/tcg-targ

[Qemu-devel] [PATCH 08/13] s390: fix short kernel command lines

2011-11-13 Thread Alexander Graf
From: Christian Borntraeger The default kernel command line for s390 is "root=/dev/ram0 ro" When overriding this line, we have to ensure to also copy the \0 to avoid false lines, for example, -append "root=/dev/vda" will result in "root=/dev/vda0 ro" with the current code. Signed-off-by: Christ

[Qemu-devel] [PATCH 12/13] tcg: Use TCGReg for standard tcg-target entry points.

2011-11-13 Thread Alexander Graf
From: Richard Henderson Including tcg_out_ld, tcg_out_st, tcg_out_mov, tcg_out_movi. Signed-off-by: Richard Henderson Reviewed-by: Andreas Färber Reviewed-by: Stefan Weil Signed-off-by: Alexander Graf --- tcg/arm/tcg-target.c | 13 +++-- tcg/hppa/tcg-target.c | 12 ++-

[Qemu-devel] [PATCH 13/13] s390x: initialize virtio dev region

2011-11-13 Thread Alexander Graf
When running the s390x virtio machine we can potentially use uninitialized memory for the virtio device backing ram. That can lead to weird breakge. So let's better initialize it to 0 properly. Reported-by: Andreas Färber Signed-off-by: Alexander Graf --- v1 -> v2: - use target_phys_addr_t

[Qemu-devel] [PATCH 04/13] s390x: update R and C bits in storage key

2011-11-13 Thread Alexander Graf
When the s390x maps a page or writes happen to a page, the R and C bits get updated. The easiest way to implement this in qemu is to simply update them whenever we map a TLB translation and act according to the permissions. Signed-off-by: Alexander Graf --- target-s390x/cpu.h |4

[Qemu-devel] [PATCH 01/13] [S390] Add hotplug support

2011-11-13 Thread Alexander Graf
I just submitted a few patches that enable the s390 virtio bus to receive a hotplug add event. This patch implements the qemu side of it, so that new hotplug events can be submitted to the guest. Signed-off-by: Alexander Graf --- v1 -> v2: - make s390 virtio hoplug code emulate-capable ---

[Qemu-devel] [PATCH 03/13] s390x: make ipte 31-bit aware

2011-11-13 Thread Alexander Graf
When running 31-bit code we can potentially map the same virtual address twice - once as 0x0yyy and once as 0x8yyy, because the upper bit gets ignored. This also should be reflected in the tlb invalidation path, so we really invalidate also the transparently created tlb entries. Signed-of

[Qemu-devel] [PATCH 09/13] s390: Fix cpu shutdown for KVM

2011-11-13 Thread Alexander Graf
From: Christian Borntraeger 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 and shutdown handling for the kvm pa

[Qemu-devel] [PATCH 07/13] s390: fix reset hypercall to reset the status

2011-11-13 Thread Alexander Graf
From: Christian Borntraeger This patch fixes the reset hypercall which is supposed to also reset the device status in device memory. This fixes the following bug: [root@localhost driver]# echo virtio0 > unbind [ 35.056966] [ cut here ] [ 35.057054] kernel BUG at drive

[Qemu-devel] [PATCH 06/13] s390x: implement SIGP restart and shutdown

2011-11-13 Thread Alexander Graf
An s390x OS does reboot and shutdown triggers through hypercalls that we didn't implement on the TCG backend yet. That means that so far we couldn't shut down virtual machines for example, having them hang on shutdown when not using KVM. With this patch, this restriction is gone. We can now shut d

Re: [Qemu-devel] [PATCH 01/13] [S390] Add hotplug support

2011-11-13 Thread Anthony Liguori
On 11/13/2011 09:33 AM, Alexander Graf wrote: I just submitted a few patches that enable the s390 virtio bus to receive a hotplug add event. This patch implements the qemu side of it, so that new hotplug events can be submitted to the guest. Signed-off-by: Alexander Graf How is this not a feat

[Qemu-devel] [PATCH] rtl8139: Fix invalid IO access alignment

2011-11-13 Thread Julian Pidancet
This patch makes iPXE work with the rtl8139 emulation. The rtl8139 driver in iPXE issues a 16bit access on the ChipCmd register (offset 0x37) to check the status of the rx buffer. The offset of the ioport access was getting fixed up to 0x36 in qemu, causing the value read in iPXE to be invalid. Th

Re: [Qemu-devel] [PATCH 01/13] [S390] Add hotplug support

2011-11-13 Thread Alexander Graf
On 13.11.2011, at 18:14, Anthony Liguori wrote: > On 11/13/2011 09:33 AM, Alexander Graf wrote: >> I just submitted a few patches that enable the s390 virtio bus to receive >> a hotplug add event. This patch implements the qemu side of it, so that new >> hotplug events can be submitted to the

Re: [Qemu-devel] [PULL 00/16] Block patches for 1.0

2011-11-13 Thread Anthony Liguori
On 11/11/2011 11:39 AM, Kevin Wolf wrote: The following changes since commit 0e3b800e71cb7759d099eabbd8ad4c4fe848e381: hw/lan9118.c: Add missing 'break' to fix buffer overrun (2011-11-10 12:29:50 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git block-stable

Re: [Qemu-devel] [PULL 1.0 0/1] 'info mtree' fix

2011-11-13 Thread Anthony Liguori
On 11/13/2011 04:08 AM, Avi Kivity wrote: On 11/13/2011 12:06 PM, Avi Kivity wrote: Fix a segfault due to incorrect usage of QTAILQ_FOREACH_SAFE(). Avi Kivity (1): memory: fix 'info mtree' segfaults memory.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Gaaah. If it i

Re: [Qemu-devel] [Bug 889868] [NEW] CM_CTRL always reads as 0x00000000 (arm/integratorcp)

2011-11-13 Thread Peter Maydell
On 13 November 2011 15:51, Steven G. Messervey <889...@bugs.launchpad.net> wrote: > qemu -version: QEMU PC emulator version 0.12.5, Copyright (c) 2003-2008 > Fabrice Bellard This is an ancient version of QEMU which there is very little point reporting bugs against. That said, I think this bug is

Re: [Qemu-devel] x86_64 linux kernel doesn't boot with -icount enabled

2011-11-13 Thread Benoît Canet
I bissected with -icount+hpet looping behavior without kvm to: commit 16b29ae1807b024bd5052301550f5d47dae958a2 Author: aliguori Date: Wed Dec 17 23:28:44 2008 + Add HPET emulation to qemu (Beth Kon) On Thu, Nov 10, 2011 at 12:25 PM, Paolo Bonzini wrote: > On 11/10/2011 11:25 AM, Max

Re: [Qemu-devel] [RFC] vmstate: Add copyrights for all cpus

2011-11-13 Thread Juan Quintela
Blue Swirl wrote: > On Mon, Nov 7, 2011 at 17:38, Juan Quintela wrote: >> Hi >> >> This patch adds copyrights to all the machine description files for >> all architectures supported. (this is done on top of my vmstate-cpus >> series patches) The problem? >> >> - What should we put as "copyirght"

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] monitor: add ability to dump SLB entries

2011-11-13 Thread David Gibson
On Thu, Nov 10, 2011 at 06:11:41PM +0100, Alexander Graf wrote: > On 11/01/2011 08:57 PM, Nishanth Aravamudan wrote: > >On 31.10.2011 [15:14:12 +1100], David Gibson wrote: > >>Good points below. I forgot to CC Nish, the original patch author on > >>my post, so I've added him to the list now. > >>

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Correct RAM size check for SLOF

2011-11-13 Thread David Gibson
On Fri, Nov 11, 2011 at 11:51:12AM +0100, Alexander Graf wrote: > On 11/08/2011 11:12 AM, Thomas Huth wrote: > >Am Tue, 8 Nov 2011 16:52:16 +1100 > >schrieb David Gibson: > > > >>The SLOF firmware used on the pseries machine needs a reasonable amount of > >>(guest) RAM in order to run, so we have

Re: [Qemu-devel] [PATCH] hw/pxa2xx.c: Fix handling of RW bits in PMCR

2011-11-13 Thread andrzej zaborowski
On 13 November 2011 15:18, Peter Maydell wrote: > Fix an error in commit afd4a6522 which meant that writing a zero > to the RW bits in the PMCR wouldn't actually clear them. (Error > spotted by Andrzej Zaborowski.) > > Signed-off-by: Peter Maydell Thanks, pushed. Cheers

Re: [Qemu-devel] [PATCH] hw/usb-net.c: Fix precedence bug when checking rndis_state

2011-11-13 Thread andrzej zaborowski
On 9 November 2011 22:09, Peter Maydell wrote: > "!X == 2" is always false (spotted by Coverity), so the checks > for whether rndis is in the correct state would never fire. I pushed this patch because it's a bugfix and the check is guarded by is_rndis() so there should be no risk of affecting no

Re: [Qemu-devel] [PATCH v3] hw/arm_sysctl: Fix RESETCTL for realview-pb-a8 and -pbx-a9

2011-11-13 Thread andrzej zaborowski
On 6 November 2011 20:14, Jean-Christophe DUBOIS wrote: > Depending on the considered baseboard the bit used to > reset the platform is different. > > Here is the list of considered Realview/Versatile platforms: > > Realview/Versatile AB for ARM926EJ-S: BOARD_ID = 0x100 = BOARD_ID_PB926 > http://i

Re: [Qemu-devel] [PATCH v2 0/2] nand/onenand: reject read-only drives

2011-11-13 Thread andrzej zaborowski
On 20 October 2011 14:53, wrote: > From: Juha Riihimäki > > Make NAND and OneNAND device models reject read-only drives. > Test for example by running > > $ qemu-system-arm -drive if=none,file=/dev/zero,readonly,id=foo -device > nand,drive=foo,chip_id=0x59 -kernel /dev/null > > or > > $ qemu-sy

Re: [Qemu-devel] [PATCH 02/10] block: add .bdrv_co_is_allocated()

2011-11-13 Thread Zhi Yong Wu
On Sat, Nov 12, 2011 at 12:47 AM, Stefan Hajnoczi wrote: > This patch adds the .bdrv_co_is_allocated() interface which is identical > to .bdrv_is_allocated() but runs in coroutine context.  Running in > coroutine context implies that other coroutines might be performing I/O > at the same time.   T

[Qemu-devel] [PATCH 2/5] pseries: Fix buggy spapr_vio_find_by_reg()

2011-11-13 Thread David Gibson
The spapr_vio_find_by_reg() function in hw/spapr_vio.c is supposed to find the device structure for a PAPR virtual IO device with the given reg value, and return NULL if none exists. It does the first ok, but if no device with that reg exists, it just returns the last device traversed in the list.

[Qemu-devel] [PATCH 4/5] pseries: Default reg for vty should be SPAPR_VTY_BASE_ADDRESS

2011-11-13 Thread David Gibson
From: Michael Ellerman In commit b4a78527359a4540d84d4cdf629d01cbb262f698 ("Place pseries vty devices at addresses more similar to existing machines"), we changed the default reg for the vty to 0x3000, however we didn't update the default value for a user specified vty device. Fix that. Sign

[Qemu-devel] [PATCH 1/5] pseries: Correct RAM size check for SLOF

2011-11-13 Thread David Gibson
The SLOF firmware used on the pseries machine needs a reasonable amount of (guest) RAM in order to run, so we have a check in the machine init function to check that this is available. However, SLOF runs in real mode (MMU off) which means it can only actually access the RMA (Real Mode Area), not a

[Qemu-devel] [PATCH 5/5] pseries: Allow kernel's early debug output to work

2011-11-13 Thread David Gibson
The PAPR specification defines a virtual TTY/console interface for guest OSes to use via the H_PUT_TERM_CHAR and H_GET_TERM_CHAR hypercalls. There can be multiple virtual ttys, so these take a "termno" parameter. This encodes which vty to use as the 'reg' property on the device tree node associat

[Qemu-devel] [PATCH 3/5] pseries: Check we have a chardev in spapr_vty_init()

2011-11-13 Thread David Gibson
From: Michael Ellerman If qemu is run like: qemu-system-ppc64 -nodefaults -device spapr-vty We end up in spapr_vty_init() with dev->chardev == NULL. Currently that leads to a segfault because we unconditionally call qemu_chr_add_handlers(). Although we could make that call conditional, I thin

[Qemu-devel] [PATCH v5 2/4] Add access control support to qemu bridge helper

2011-11-13 Thread Corey Bryant
We go to great lengths to restrict ourselves to just cap_net_admin as an OS enforced security mechanism. However, we further restrict what we allow users to do to simply adding a tap device to a bridge interface by virtue of the fact that this is the only functionality we expose. This is not good

[Qemu-devel] [PATCH v5 0/4] -net bridge: rootless bridge support for qemu

2011-11-13 Thread Corey Bryant
With qemu it is possible to run a guest from an unprivileged user but if we wanted to communicate with the outside world we had to switch to root. We address this problem by introducing a new network backend and a new network option for -net tap. This is less flexible when compared to existing -n

[Qemu-devel] [PATCH v5 3/4] Add cap reduction support to enable use as SUID

2011-11-13 Thread Corey Bryant
The ideal way to use qemu-bridge-helper is to give it an fscap of using: setcap cap_net_admin=ep qemu-bridge-helper Unfortunately, most distros still do not have a mechanism to package files with fscaps applied. This means they'll have to SUID the qemu-bridge-helper binary. To improve security

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

2011-11-13 Thread Corey Bryant
This patch adds a helper that can be used to create a tap device attached to a bridge device. Since this helper is minimal in what it does, it can be given CAP_NET_ADMIN which allows qemu to avoid running as root while still satisfying the majority of what users tend to want to do with tap devices

[Qemu-devel] [PATCH v5 4/4] Add support for net bridge

2011-11-13 Thread Corey Bryant
The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This model is great for portability and flexibility but it's incredibly difficult to eliminate the need to ru

[Qemu-devel] [0/5] Assorted small pseries bug fixes

2011-11-13 Thread David Gibson
This series contains a number of small bugfixes for the pseries machine.

[Qemu-devel] linux-3.0.8 not booting in qemu for beagle / omap3

2011-11-13 Thread Sukanto Ghosh
I am trying to run linux 3.0.8 on qemu for omap3_beagle on qemu-linaro version 0.15.91. I have attached the config file I am using. It is giving bad register error after u-boot jumps to linux. If it is a known issue, please let me know which upstream linux kernel version will run on qemu. Also if

[Qemu-devel] [PATCH] ivshmem: use PIO for BAR0(Doorbell) instead of MMIO to reduce notification time

2011-11-13 Thread zanghongyong
From: Hongyong Zang Ivshmem(nahanni) is a mechanism for sharing host memory with VMs running on the same host. Currently, guest notifies qemu by reading or writing ivshmem device's PCI MMIO BAR0(Doorbell). This patch, changes this PCI MMIO BAR0(Doorbell) to PIO. And we find guest accesses PIO

[Qemu-devel] I have some questions in block , can anyone help me, thank you!

2011-11-13 Thread Zhi Hui Li
questions: 1) In qcow2.c, in function: qcow2_co_readv In qcow2.h, in struct BDRVQcowState I want to know the relations between sector_num in function qcow2_co_readv and cluster_sectors in struct BDRVQcowState ? 2) In qcow2.c, in function; qcow2_co_writev at line 547: index_in_cluster =

Re: [Qemu-devel] [PATCH] Give an error when using -icount option with kvm accelerator

2011-11-13 Thread Cao,Bing Bu
On 11/11/2011 03:09 PM, Cao,Bing Bu wrote: With -icount, the vm_clock is updated with help from TCG (it counts instructions at 2^ICOUNT ns/instructions). With KVM, the instruction count is not available so KVM cannot provide this help. Signed-off-by: Cao,Bing Bu --- vl.c |8 ++-- 1

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2] monitor: add ability to dump SLB entries

2011-11-13 Thread Alexander Graf
On 14.11.2011, at 01:40, David Gibson wrote: > On Thu, Nov 10, 2011 at 06:11:41PM +0100, Alexander Graf wrote: >> On 11/01/2011 08:57 PM, Nishanth Aravamudan wrote: >>> On 31.10.2011 [15:14:12 +1100], David Gibson wrote: Good points below. I forgot to CC Nish, the original patch author on

Re: [Qemu-devel] [PATCH 02/10] block: add .bdrv_co_is_allocated()

2011-11-13 Thread Paolo Bonzini
On 11/14/2011 04:04 AM, Zhi Yong Wu wrote: > +co = qemu_coroutine_create(bdrv_is_allocated_co_entry); > +qemu_coroutine_enter(co,&data); Since this main process will stop within qemu_coroutine_enter() until bdrv_is_allocated_co_entry() is completed, three lines of condition cod