Re: [Qemu-devel] [PATCH v2] cpu: implementing victim TLB for QEMUsystem emulated TLBB

2014-01-25 Thread Paolo Bonzini
Il 24/01/2014 23:32, BALATON Zoltan ha scritto: On Fri, 24 Jan 2014, Alex Bennée wrote: trent.t...@gmail.com writes: Attaching data in excel which could not be sent with the patch at the same time. If you can attach the summary of the data as plain text that would be useful. Not all of us h

Re: [Qemu-devel] [PATCH] ACPI: Add IRQ resource to HPET._CRS on Mac OS X

2014-01-25 Thread Alexander Graf
> Am 25.01.2014 um 01:09 schrieb "Gabriel L. Somlo" : > > On Fri, Jan 24, 2014 at 10:18:04PM +0100, Alexander Graf wrote: >>> In the mean time I updated the bootloader I was using (chameleon) to >>> the latest svn (2345), and was able to bring up Lion in addition to >>> SnowLeopard. >> >> Did C

Re: [Qemu-devel] QEMU ARM946 emulation, DIGIC, and MPU fault handling

2014-01-25 Thread Georg Hofstetter
Am 24.01.2014 09:31, schrieb Antony Pavlov: > On Thu, 23 Jan 2014 22:25:36 + > Peter Maydell wrote: > >> Since the 946 doesn't provide any way to find out what the fault >> address actually was (it has no DFAR or IFAR) I presume that all >> guest software treats a data abort or prefetch abort

Re: [Qemu-devel] [Qemu-trivial] [PULL 00/11] Trivial patches for 2014-01-16

2014-01-25 Thread Michael Tokarev
Ping? We've a few more patches in the queue, should I drop the ones from previous week? Thanks, /mjt 16.01.2014 21:35, Michael Tokarev wrote: > There's nothing exciting in there, but we have some small bugfixes here and > there, and a few cosmetic changes too. > > This is my first signed pull

Re: [Qemu-devel] [PATCH v3 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-25 Thread Beniamino Galvani
On Thu, Jan 23, 2014 at 11:04:32PM +1000, Peter Crosthwaite wrote: > On Mon, Jan 20, 2014 at 9:25 AM, Beniamino Galvani > wrote: > > This patch adds support for the Fast Ethernet MAC found on Allwinner > > SoCs, together with a basic emulation of Realtek RTL8201CP PHY. > > > > Since there is no p

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread rajan pathak
OK,Peter Thanks. I got your point,In my case SoC is from TI which uses cortexa-15 as CPU core and example(Borad) would be keystone 2 EVM . I guess I need to divide my emulation in three steps 1)Emulation of SoC 2)Emulation of board. 3)Emulation of Devices(Ethernet controller). Please correct m

[Qemu-devel] Fwd: Why does this work on kvm but not soft emulation?

2014-01-25 Thread Aryeh Friedman
-- Forwarded message -- From: Aryeh Friedman Date: Fri, Jan 24, 2014 at 12:19 PM Subject: Why does this work on kvm but not soft emulation? To: qemu-disc...@nongnu.org First 3 steps are on Intel running Ubunutu 12.04.3 LTS the rest are on AMD running FreeBSD 10-RELEASE 1. I crea

[Qemu-devel] Why does this work on kvm but not soft emulation?

2014-01-25 Thread Aryeh Friedman
First 3 steps are on Intel running Ubunutu 12.04.3 LTS the rest are on AMD running FreeBSD 10-RELEASE 1. I create 10G drive (raw file format) 2. I install ubuntu onto it with: #!/bin/bash # # Handwritten script # Net set up bridge=br0 tap=$(sudo tunctl -u $(whoami) -b) ip link set $tap up sleep

[Qemu-devel] [PATCH] readline: Add missing GCC_FMT_ATTR

2014-01-25 Thread Stefan Weil
This fixes a compiler warning with -Werror=missing-format-attribute and allows improved compiler checks for variable argument lists. Signed-off-by: Stefan Weil --- include/qemu/readline.h |3 ++- monitor.c |3 ++- qemu-io.c |3 ++- 3 files changed, 6 inser

Re: [Qemu-devel] [PATCH v2 6/8] target-arm: A64: Add integer ops from SIMD 3-same group

2014-01-25 Thread Peter Maydell
On 23 January 2014 15:28, Peter Maydell wrote: > Add some of the integer operations in the SIMD 3-same group: > specifically, the comparisons, addition and subtraction. > > @@ -6040,7 +6062,141 @@ static void disas_simd_3same_float(DisasContext *s, > uint32_t insn) > /* Integer op subgroup of C

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread rajan pathak
Also, I am just wondering why anyone hasn't suggested me to look into TI OMAP emulation code present in QEMU. Thanks Rajan On Sat, Jan 25, 2014 at 5:52 AM, rajan pathak wrote: > OK,Peter Thanks. > > I got your point,In my case SoC is from TI which uses cortexa-15 as CPU > core and example(Bor

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread Peter Maydell
On 25 January 2014 19:17, rajan pathak wrote: > Also, I am just wondering why anyone hasn't suggested me to look into TI > OMAP emulation code present in QEMU. Because it's pretty elderly and only supports up to OMAP2 (there's some OMAP3 support out of tree). Why do you need a model of this spec

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread rajan pathak
Thanks Peter for addressing this query. There is no specific reason going for this particular model of Ethernet controller. Its just that I wanted to learn it and off late I worked with Key Stone SoC . Also,can I use reuse some code from TI OMAP2 emulation to emulate basic part of KeyStone SoC.

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread Andreas Färber
Rajan, You'll need to follow a few basic rules here working with our busy community: Please don't send HTML-formatted replies and please don't top-post, to make it easier for other people to understand the context. Am 25.01.2014 20:47, schrieb rajan pathak: > There is no specific reason going for

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread Peter Maydell
On 25 January 2014 19:47, rajan pathak wrote: > There is no specific reason going for this particular model of Ethernet > controller. > > Its just that I wanted to learn it and off late I worked with Key Stone SoC If this is a learning exercise in how to write QEMU device models rather than a spe

[Qemu-devel] [PULL 1/5] disas/i386.c: disassemble movbe instruction

2014-01-25 Thread Richard Henderson
From: Aurelien Jarno Signed-off-by: Aurelien Jarno Signed-off-by: Richard Henderson --- disas/i386.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disas/i386.c b/disas/i386.c index 47f1f2e..044e02c 100644 --- a/disas/i386.c +++ b/disas/i386.c @@ -2632,17 +2632,17

[Qemu-devel] [PULL 0/5] tcg/i386 movbe support

2014-01-25 Thread Richard Henderson
This is mostly Aurelien's patch series, with a few tweaks: In patch 3, rename P_EXT2 to P_EXT38, as I thing that's less arbitrary for the 0x0f 0x38 prefix. In patch 4, use a "movop" local variable to reduce code duplication. Tested with ppc64 and sparc images on a Haswell host. r~ The follow

[Qemu-devel] [PULL 3/5] tcg/i386: add support for three-byte opcodes

2014-01-25 Thread Richard Henderson
From: Aurelien Jarno Add support for three-byte opcodes, starting with the 0x0f 0x38 prefix. Use P_EXT38 as the new constant, and shift all other constants so that P_EXT and P_EXT38 have neighbouring values. Signed-off-by: Aurelien Jarno [RTH: Changed the name from P_EXT2 to P_EXT38.] Signed-of

[Qemu-devel] [PULL 4/5] tcg/i386: use movbe instruction in qemu_ldst routines

2014-01-25 Thread Richard Henderson
From: Aurelien Jarno The movbe instruction has been added on some Intel Atom CPUs and on recent Intel Haswell CPUs. It allows to load/store a value and at the same time bswap it. This patch detects the avaibility of this instruction and when available use it in the qemu load/store routines in re

[Qemu-devel] [PULL 2/5] tcg/i386: remove hardcoded P_REXW value

2014-01-25 Thread Richard Henderson
From: Aurelien Jarno P_REXW is defined has a constant at the beginning of i386/tcg-target.c, but the corresponding bit is later used in a harcoded way, which defeat the purpose of a constant. Fix that by using a conditional expression operator instead of a shift. On x86 this actually makes the c

[Qemu-devel] [PULL 5/5] tcg/i386: cleanup useless #ifdef

2014-01-25 Thread Richard Henderson
From: Aurelien Jarno TCG_TARGET_HAS_movcond_i32 is always defined to 1 in tcg-target.h, so remove the corresponding #ifdef #endif sequence, left from a previous refactoring. Signed-off-by: Aurelien Jarno Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c | 2 -- 1 file changed, 2 dele

Re: [Qemu-devel] [PATCH v3 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-25 Thread Andreas Färber
Am 20.01.2014 00:25, schrieb Beniamino Galvani: > Signed-off-by: Beniamino Galvani > --- > hw/arm/allwinner-a10.c | 16 > hw/arm/cubieboard.c|7 +++ > include/hw/arm/allwinner-a10.h |3 +++ > 3 files changed, 26 insertions(+) > > diff --git a/hw

Re: [Qemu-devel] [PATCH v3 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-25 Thread Peter Crosthwaite
On Sat, Jan 25, 2014 at 11:37 PM, Beniamino Galvani wrote: > On Thu, Jan 23, 2014 at 11:04:32PM +1000, Peter Crosthwaite wrote: >> On Mon, Jan 20, 2014 at 9:25 AM, Beniamino Galvani >> wrote: >> > This patch adds support for the Fast Ethernet MAC found on Allwinner >> > SoCs, together with a bas

Re: [Qemu-devel] [PULL 10/42] qtest: Fix the bug about disable vnc causes "make check" fail

2014-01-25 Thread Andreas Färber
Am 18.01.2014 12:54, schrieb Kewei Yu: > > 2014/1/17 Andreas Färber mailto:afaer...@suse.de>> > > Am 15.01.2014 11:22, schrieb Kevin Wolf: > > From: Kewei Yu mailto:kewe...@gmail.com>> > > > > When we disable vnc from "./configure", QEMU can't use the vnc option. > > So qtest

[Qemu-devel] [Bug 1272796] [NEW] Windows 98 First Edition emulation problems

2014-01-25 Thread Riccardo Bassani
Public bug reported: System: Debian SID x86 with latest updates 1) QEMU compiled from latest main GIT branch(at the time of writing, 1.7.50) (and 1.7 stable version) ./configure options: ./configure --enable-sdl --target-list=i386-softmmu --cpu=i686 --audio-drv-list=alsa When you try to boot W

[Qemu-devel] [Bug 1272796] Re: Windows 98 First Edition emulation problems

2014-01-25 Thread Riccardo Bassani
** Description changed: System: Debian SID x86 with latest updates - 1) QEMU compiled from latest main GIT branch (and 1.7 stable version) + 1) QEMU compiled from latest main GIT branch(at the time of writing, 1.7.50) (and 1.7 stable version) ./configure options: ./configure --enable-sdl -

Re: [Qemu-devel] [PATCH v3] Fix QEMU build on OpenBSD on x86 archs

2014-01-25 Thread Brad Smith
On 02/01/14 2:55 AM, Stefan Hajnoczi wrote: On Tue, Dec 10, 2013 at 07:49:08PM -0500, Brad Smith wrote: This resolves the build issue with building the ROMs on OpenBSD on x86 archs. As of OpenBSD 5.3 the compiler builds PIE binaries by default and thus the whole OS/packages and so forth. The ROM

Re: [Qemu-devel] [Bug 1272796] [NEW] Windows 98 First Edition emulation problems

2014-01-25 Thread Peter Crosthwaite
On Sun, Jan 26, 2014 at 10:26 AM, Riccardo Bassani <1272...@bugs.launchpad.net> wrote: > Public bug reported: > > System: Debian SID x86 with latest updates > > 1) QEMU compiled from latest main GIT branch(at the time of writing, 1.7.50) > (and 1.7 stable version) > ./configure options: ./configur

[Qemu-devel] [PATCH v5 1/4] qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset()

2014-01-25 Thread Hu Tao
n_start can be actually calculated from offset. The number of sectors to be allocated(n_end - n_start) can be passed in in num. By removing n_start and n_end, we can save two parameters. The side effect is there is a bug in qcow2.c:preallocate() that passes incorrect n_start to qcow2_alloc_cluster

[Qemu-devel] [PATCH v5 3/4] qcow2: check for NULL l2meta

2014-01-25 Thread Hu Tao
In the case of a metadata preallocation with a large cluster size, qcow2_alloc_cluster_offset() can allocate nothing and returns a NULL l2meta. This patch checks for it and link2 l2 with only valid l2meta. Replace 9 and 512 with BDRV_SECTOR_BITS, BDRV_SECTOR_SIZE respectively while at the function

[Qemu-devel] [PATCH v5 0/4] qemu-img: fix bugs when cluster size is larger than the default value

2014-01-25 Thread Hu Tao
This series fixes several bugs of qcow2 when doing preallocation with a cluster_size larger than the default value. v5: - limit cur_nr_sectors for the encrypted case (patch 1) - fix some grammar problems in commit messages and make commit messages more understandable Hu Tao (4): qcow2:

[Qemu-devel] [PATCH v5 2/4] qcow2: fix offset overflow in qcow2_alloc_clusters_at()

2014-01-25 Thread Hu Tao
When cluster size is big enough it can lead to an offset overflow in qcow2_alloc_clusters_at(). This patch fixes it. The allocation is stopped each time at L2 table boundary (see handle_alloc()), so the possible maximum bytes could be 2^(cluster_bits - 3 + cluster_bits) cluster_bits - 3 is use

[Qemu-devel] [PATCH v5 4/4] qemu-iotests: add test for qcow2 preallocation with different cluster sizes

2014-01-25 Thread Hu Tao
Reviewed-by: Max Reitz Signed-off-by: Hu Tao --- tests/qemu-iotests/079 | 63 ++ tests/qemu-iotests/079.out | 32 +++ tests/qemu-iotests/group | 1 + 3 files changed, 96 insertions(+) create mode 100755 tests/qemu-iotests/07

Re: [Qemu-devel] [PATCH v5 1/4] qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset()

2014-01-25 Thread Benoît Canet
Le Sunday 26 Jan 2014 à 11:12:37 (+0800), Hu Tao a écrit : > n_start can be actually calculated from offset. The number of > sectors to be allocated(n_end - n_start) can be passed in in > num. By removing n_start and n_end, we can save two parameters. > > The side effect is there is a bug in qcow2

Re: [Qemu-devel] [PATCH v5 2/4] qcow2: fix offset overflow in qcow2_alloc_clusters_at()

2014-01-25 Thread Benoît Canet
Le Sunday 26 Jan 2014 à 11:12:38 (+0800), Hu Tao a écrit : > When cluster size is big enough it can lead to an offset overflow > in qcow2_alloc_clusters_at(). This patch fixes it. > > The allocation is stopped each time at L2 table boundary > (see handle_alloc()), so the possible maximum bytes cou

Re: [Qemu-devel] [PATCH v5 3/4] qcow2: check for NULL l2meta

2014-01-25 Thread Benoît Canet
Le Sunday 26 Jan 2014 à 11:12:39 (+0800), Hu Tao a écrit : > In the case of a metadata preallocation with a large cluster size, > qcow2_alloc_cluster_offset() can allocate nothing and returns a > NULL l2meta. This patch checks for it and link2 l2 with only valid > l2meta. > > Replace 9 and 512 wit

Re: [Qemu-devel] [PATCH v4 2/5] qapi: add qapi-introspect.py code generator

2014-01-25 Thread Amos Kong
On Fri, Jan 24, 2014 at 05:34:35PM +0800, Amos Kong wrote: > On Fri, Jan 24, 2014 at 05:12:12PM +0800, Fam Zheng wrote: > > On Thu, 01/23 22:46, Amos Kong wrote: > > > index 000..03179fa > > > --- /dev/null > > > +++ b/scripts/qapi-introspect.py > > > @@ -0,0 +1,172 @@ > > > +# > > > +# QAPI i

Re: [Qemu-devel] [PATCH] scsi: Change scsi sense buf size to 252

2014-01-25 Thread Benoît Canet
Le Friday 24 Jan 2014 à 15:02:24 (+0800), Fam Zheng a écrit : > Current buffer size fails the assersion check in like > > hw/scsi/scsi-bus.c:1655:assert(req->sense_len <= sizeof(req->sense)); > > when backend (block/iscsi.c) returns more data then 96. > > Exercise the core dump path by b