On 2014-08-13 08:14, Michael Tokarev wrote:
> 09.08.2014 18:05, Jan Kiszka wrote:
>> From: Jan Kiszka
>>
>> IA-32 SDM, Figure 10-14: Bits 27:0 are reserved as 1.
>>
>> Fixes Jailhouse hypervisor start with in-kernel irqchips off.
>
> Applied to -trivial, thank you!
>
> Are the other similar case
When disabling MSI/MSIX via "ibm,change-msi" RTAS call, no check was made
if MSI or MSIX is actually supported and the MSI message was reset
unconditionally. If this happened on a device which does not support MSI
(but does support MSIX, otherwise "ibm,change-msi" would not be called),
this device
Commit 58ac321135a introduced a check to ide dma processing which
constrains all requests to drive size. However, apparently, some
valid requests (like TRIM) does not fit in this constraint, and
fails in 2.1. So check the range only for reads and writes.
Cc: qemu-sta...@nongnu.org
Signed-off-by:
On Mon, Aug 11, 2014 at 09:37:01PM +0200, Paolo Bonzini wrote:
> Il 10/08/2014 05:46, Ming Lei ha scritto:
> @@ -4356,6 +4353,20 @@ BlockDriverAIOCB *bdrv_aio_readv(BlockDriverState *bs,
> int64_t sector_num,
> {
> trace_bdrv_aio_readv(bs, sector_num, nb_sectors, opaque);
>
> +if (bs->
On Tue, Aug 12, 2014 at 6:47 PM, Nikolay Nikolaev
wrote:
>
> Hello,
>
>
> On Tue, Aug 12, 2014 at 5:41 AM, Li Liu wrote:
> >
> > Hi all,
> >
> > Is anyone there can tell the current status of vhost-net on kvm-arm?
> >
> > Half a year has passed from Isa Ansharullah asked this question:
> > http:/
Daniel Henrique Barboza writes:
> The curl hardcoded timeout (5 seconds) sometimes is not long
> enough depending on the remote server configuration and network
> traffic. The user should be able to set how much long he is
> willing to wait for the connection.
>
> Adding a new option to set this
On Wed, Aug 13, 2014 at 08:14:30AM +0200, Jan Kiszka wrote:
> The spec says (and real HW confirms this) that, if the bus master bit
> is 0, the device will not generate any PCI accesses. MSI and MSI-X
> messages fall among these, so we should use the corresponding address
> space to deliver them. T
On Tue, Aug 12, 2014 at 04:40:17PM +0200, Markus Armbruster wrote:
> pc_fw_cfg_guest_info() never does anything, because has_pci_info is
> always false.
>
> Introduced in commit f8c457b "pc: pass PCI hole ranges to Guests",
> disabled in commit 9604f70 "pc: disable pci-info for 1.6", and hasn't
>
Am 12.08.2014 um 21:08 hat Paolo Bonzini geschrieben:
> Il 12/08/2014 10:12, Ming Lei ha scritto:
> >> > The below patch is basically the minimal change to bypass coroutines.
> >> > Of course
> >> > the block.c part is not acceptable as is (the change to
> >> > refresh_total_sectors
> >> > is br
Am 13.08.2014 um 08:41 hat Michael Tokarev geschrieben:
> [dropping debian bugreport]
>
> 13.08.2014 10:05, Michael Tokarev wrote:
> > [This is http://bugs.debian.org/757927 -- trim stopped working in qemu 2.1]
> >
> > 12.08.2014 18:46, Michael Tokarev wrote:
> >> 12.08.2014 17:35, Roman Mamedov
On Mon, Aug 11, 2014 at 7:59 PM, Ming Lei wrote:
> This test uses getppid() syscall to simulate single operation
> run inside coroutine, and compare how many operations done per
> second between using coroutine and not using coroutine to
> evalute cost introduced by running operation via coroutine
This test runs dummy function with coroutine by using
two enter and one yield since which is a common usage.
So we can see the cost introduced by corouting for running
one function, for example:
Run operation 2000 iterations 4.841071 s, 4131K operations/s
242ns per coroutine
On Wed, Aug 13, 2014 at 3:08 AM, Paolo Bonzini wrote:
> Il 12/08/2014 10:12, Ming Lei ha scritto:
>>> > The below patch is basically the minimal change to bypass coroutines. Of
>>> > course
>>> > the block.c part is not acceptable as is (the change to
>>> > refresh_total_sectors
>>> > is broken
Hi,
QMP command 'query-memory-devices' returns DIMM slots IDs as integers,
while 'query-acpi-ospm-status' returns them as strings. Why is this the
case? Aren't slot IDs numeric anyway?
I've looked up the ACPI specs but I can't find any specific mention of how
DIMM IDs should be represented, so wh
Add instructions of SRR opcode format.
Add helper for add/sub_ssov.
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- gen_sub_d now saves result of substraction into tcg temp to handle ret =
r1 cases.
- gen_mul_i32s now calculates V, SV bits in bit 31.
- SSOV makro now computes V, SV
Add tcg and cpu model initialization.
Add gen_intermediate_code function.
Activate target in configure and add softmmu config.
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- gen_intermediate_code_internal: Move calculation of next_pc after the ifs
for singlestep and long tbs.
configure
Add instructions of SC opcode format.
Add helper for begin interrupt service routine.
Signed-off-by: Bastian Koppelmann
Reviewed-by: Richard Henderson
---
target-tricore/helper.h| 1 +
target-tricore/op_helper.c | 59 ++
target-tricore/translate
Add masks and opcodes for decoding TriCore instructions.
Signed-off-by: Bastian Koppelmann
---
target-tricore/translate.c |1 +
target-tricore/tricore-opcodes.h | 1406 ++
2 files changed, 1407 insertions(+)
create mode 100644 target-tricore/tricore
Add instructions of SLR, SSRO and SRO opcode format.
Signed-off-by: Bastian Koppelmann
Reviewed-by: Richard Henderson
---
target-tricore/translate.c | 121 +
1 file changed, 121 insertions(+)
diff --git a/target-tricore/translate.c b/target-tricore/
Add instructions of SB opcode format.
Add helper call/ret.
Add micro-op generator functions for branches.
Add makro to generate helper functions.
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- Change int cond to TCGCond in functions gen_branch_cond, gen_branch_condi.
- gen_intermediate
Add instructions of SRC opcode format.
Add micro-op generator functions for add, conditional add/sub and shi/shai.
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- gen_shaci: Change case of shift_count == 32 to shift_count == -32 and add
the clear of V bit.
- gen_shaci: Move creation an
Add TriCore target stubs, and QOM cpu.
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- Change documentation of S, SV bits to use bit 31.
- psw_read/_write now uses only bit 31 of S, SV bits.
arch_init.c | 2 +
cpu-exec.c| 11 +-
cpus.c
Add instructions of SBR opcode format.
Add gen_loop micro-op generator function.
Signed-off-by: Bastian Koppelmann
Reviewed-by: Richard Henderson
---
target-tricore/translate.c | 66 +-
1 file changed, 65 insertions(+), 1 deletion(-)
diff --git a/ta
On 2014/8/13 17:10, Nikolay Nikolaev wrote:
> On Tue, Aug 12, 2014 at 6:47 PM, Nikolay Nikolaev
> wrote:
>>
>> Hello,
>>
>>
>> On Tue, Aug 12, 2014 at 5:41 AM, Li Liu wrote:
>>>
>>> Hi all,
>>>
>>> Is anyone there can tell the current status of vhost-net on kvm-arm?
>>>
>>> Half a year has pass
Add instructions of SBC and SBRN opcode format.
Signed-off-by: Bastian Koppelmann
Reviewed-by: Richard Henderson
---
target-tricore/translate.c | 36
1 file changed, 36 insertions(+)
diff --git a/target-tricore/translate.c b/target-tricore/translate.c
inde
Add instructions of SSRS and SLRO opcode format.
Add micro-op generator functions for offset loads.
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- decode_16Bit_opc: Add if to handle ADDSC.A opcode being 6 bit instead of
7 bit long
target-tricore/translate.c | 59
Add instructions of SSR opcode format.
Signed-off-by: Bastian Koppelmann
Reviewed-by: Richard Henderson
---
target-tricore/translate.c | 50 ++
1 file changed, 50 insertions(+)
diff --git a/target-tricore/translate.c b/target-tricore/translate.c
ind
Add basic board to allow systemmode emulation
Signed-off-by: Bastian Koppelmann
---
hw/tricore/Makefile.objs | 1 +
hw/tricore/tricore_testboard.c | 129 +
include/hw/tricore/tricore.h | 54 +
3 files changed, 184 insertions(+)
Add instructions of SR opcode format.
Add micro-op generator functions for saturate.
Add helper return from exception (rfe).
Signed-off-by: Bastian Koppelmann
---
v4 -> v5:
- Switched sat_neg and arg in first movcond in function gen_saturate.
- SR_NOT: Remove if checking OP2.
target-tri
Add basic softmmu support for TriCore
Signed-off-by: Bastian Koppelmann
---
target-tricore/helper.c| 54 +-
target-tricore/op_helper.c | 33 +++-
2 files changed, 85 insertions(+), 2 deletions(-)
diff --git a/target-tricore
Hi,
my aim is to add Infineon's TriCore architecture to QEMU. This series of
patches adds the target stubs, a basic testboard and a softmmu for system mode
emulation. Furthermore it adds all the 16 bit long instructions of the
architecture grouped by opcode format.
After this series of patches
David Gibson writes:
> As of qemu-2.1, spapr/pseries, has a set of versioned machine classes to
> represent the machine type as it appeared to the guest in different qemu
> versions. This allows for safe migration of guests between current and
> future qemu versions.
>
> In PC, however, the defa
If we configure qemu with realtime-mlock-on and memory-node-bind at the same
time,
Qemu will fail to start, and mbind() fails with message "Input/output error".
>From man page:
int mbind(void *addr, unsigned long len, int mode,
unsigned long *nodemask, unsigned long maxnode,
On Wed, Aug 13, 2014 at 12:10 PM, Nikolay Nikolaev
wrote:
> On Tue, Aug 12, 2014 at 6:47 PM, Nikolay Nikolaev
> wrote:
>>
>> Hello,
>>
>>
>> On Tue, Aug 12, 2014 at 5:41 AM, Li Liu wrote:
>> >
>> > Hi all,
>> >
>> > Is anyone there can tell the current status of vhost-net on kvm-arm?
>> >
>> > H
Hi Paolo,
On Tue, Aug 12, 2014 at 3:37 AM, Paolo Bonzini wrote:
> Il 10/08/2014 05:46, Ming Lei ha scritto:
>> Hi Kevin, Paolo, Stefan and all,
>>
>>
>> On Wed, 6 Aug 2014 10:48:55 +0200
>> Kevin Wolf wrote:
>>
>>> Am 06.08.2014 um 07:33 hat Ming Lei geschrieben:
>>
>>>
>>> Anyhow, the coroutine
On Wed, Aug 13, 2014 at 07:21:57PM +0800, zhanghailiang wrote:
> If we configure qemu with realtime-mlock-on and memory-node-bind at the same
> time,
> Qemu will fail to start, and mbind() fails with message "Input/output error".
>
> >From man page:
> int mbind(void *addr, unsigned long len, int
Il 12/08/2014 21:29, Eduardo Habkost ha scritto:
> On Tue, Aug 12, 2014 at 09:12:00PM +0200, Paolo Bonzini wrote:
>> Il 12/08/2014 20:55, Eduardo Habkost ha scritto:
>>> This makes the CPUID data change under the guest's feet during
>>> live-migration.
>>>
>>> Adding compat code to ensure older mac
On Tue, Aug 12, 2014 at 01:53:40PM -0500, Tom Musta wrote:
> The ELF V2 ABI for PPC64 defines MINSIGSTKSZ as 4096 bytes whereas it was
> 2048 previously.
fails to build - need to make get_ppc64_abi a properly exported function.
> Signed-off-by: Tom Musta
> ---
> V2: Define and use TARGET_MINSIG
Il 13/08/2014 12:19, Ming Lei ha scritto:
>> > The problem is that your patches to do touch too much code and subtly
>> > break too much stuff. The one I wrote does have a little breakage
> Could you give a hint about which stuff are broken? Last time, you mention
> virtio-scsi need to keep AIOCB
Il 13/08/2014 13:43, Ming Lei ha scritto:
>> > The below patch is basically the minimal change to bypass coroutines. Of
>> > course
>> > the block.c part is not acceptable as is (the change to
>> > refresh_total_sectors
>> > is broken, the others are just ugly), but it is a start. Please run it
On 08/13/2014 06:15 AM, Markus Armbruster wrote:
Daniel Henrique Barboza writes:
The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the remote server configuration and network
traffic. The user should be able to set how much long he is
willing to wait for the con
On Wed, Aug 13, 2014 at 8:35 PM, Paolo Bonzini wrote:
> Il 13/08/2014 13:43, Ming Lei ha scritto:
>>> > The below patch is basically the minimal change to bypass coroutines. Of
>>> > course
>>> > the block.c part is not acceptable as is (the change to
>>> > refresh_total_sectors
>>> > is broken
Hi,
Am 13.08.2014 03:23, schrieb David Gibson:
> As of qemu-2.1, spapr/pseries, has a set of versioned machine classes to
> represent the machine type as it appeared to the guest in different qemu
> versions. This allows for safe migration of guests between current and
> future qemu versions.
>
Il 13/08/2014 11:54, Kevin Wolf ha scritto:
> Am 12.08.2014 um 21:08 hat Paolo Bonzini geschrieben:
>> Il 12/08/2014 10:12, Ming Lei ha scritto:
> The below patch is basically the minimal change to bypass coroutines. Of
> course
> the block.c part is not acceptable as is (the change t
On 08/13/2014 09:39 AM, Daniel H Barboza wrote:
On 08/13/2014 06:15 AM, Markus Armbruster wrote:
Daniel Henrique Barboza writes:
The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the remote server configuration and network
traffic. The user should be able to s
On Wed, Aug 13, 2014 at 9:16 PM, Paolo Bonzini wrote:
> Il 13/08/2014 11:54, Kevin Wolf ha scritto:
>> Am 12.08.2014 um 21:08 hat Paolo Bonzini geschrieben:
>>> Il 12/08/2014 10:12, Ming Lei ha scritto:
>> The below patch is basically the minimal change to bypass coroutines.
>> Of course
On 8/13/2014 7:31 AM, Riku Voipio wrote:
> On Tue, Aug 12, 2014 at 01:53:40PM -0500, Tom Musta wrote:
>> The ELF V2 ABI for PPC64 defines MINSIGSTKSZ as 4096 bytes whereas it was
>> 2048 previously.
>
> fails to build - need to make get_ppc64_abi a properly exported function.
>
Riku:
Sorry abo
Yes...
Time is a problem, and it‘s currently running out... ;-)
I think the first step is to reason about possible approaches and how
they can be implemented in QEMU. The implementation can follow later :-)
Thank you for the hint with the drive-mirror feature.
I will take a look at it and sure
Daniel H Barboza writes:
> On 08/13/2014 09:39 AM, Daniel H Barboza wrote:
>>
>> On 08/13/2014 06:15 AM, Markus Armbruster wrote:
>>> Daniel Henrique Barboza writes:
>>>
The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the remote server configuration and
On Tue, Aug 12, 2014 at 06:29:41PM +0200, Kevin Wolf wrote:
> Signed-off-by: Kevin Wolf
> ---
> hw/ide/core.c| 4 +++-
> tests/ide-test.c | 14 ++
> 2 files changed, 17 insertions(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
On 08/13/2014 11:07 AM, Markus Armbruster wrote:
Daniel H Barboza writes:
On 08/13/2014 09:39 AM, Daniel H Barboza wrote:
On 08/13/2014 06:15 AM, Markus Armbruster wrote:
Daniel Henrique Barboza writes:
The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the
On Tue, Aug 12, 2014 at 02:44:09PM -0400, John Snow wrote:
> Currently, if the block device backing the IDE drive is resized,
> the information about the device as cached inside of the IDEState
> structure is not updated, thus when a guest OS re-queries the drive,
> it is unable to see the expanded
On 08/12/2014 10:48 PM, Hitoshi Mitake wrote:
> This patch makes the fault injection functionality of blkdebug
> callable from QMP. Motivation of this change is for testing and
> debugging distributed systems. Ordinal distributed systems must handle
> hardware faults because of its reason for exist
The Wednesday 13 Aug 2014 à 18:08:47 (+0800), Ming Lei wrote :
> This test runs dummy function with coroutine by using
> two enter and one yield since which is a common usage.
>
> So we can see the cost introduced by corouting for running
> one function, for example:
>
> Run operation 2
On 13 août 2014 16:27:29 CEST, "Benoît Canet" wrote:
> The Wednesday 13 Aug 2014 à 18:08:47 (+0800), Ming Lei wrote :
> > This test runs dummy function with coroutine by using
> > two enter and one yield since which is a common usage.
> >
> > So we can see the cost introduced by corouting for r
On Wed, Aug 13, 2014 at 01:48:41PM +0900, Hitoshi Mitake wrote:
> @@ -485,6 +493,10 @@ static BlockDriverAIOCB
> *blkdebug_aio_readv(BlockDriverState *bs,
> BDRVBlkdebugState *s = bs->opaque;
> BlkdebugRule *rule = NULL;
>
> +if (s->qmp_fault_state != BLOCK_FAULT_STATE_NONE) {
> +
The Tuesday 12 Aug 2014 à 16:12:57 (-0300), Daniel Henrique Barboza wrote :
> The curl hardcoded timeout (5 seconds) sometimes is not long
> enough depending on the remote server configuration and network
> traffic. The user should be able to set how much long he is
> willing to wait for the connec
Hi Edgar,
I was just writing a test to verify the correct behavior of the SCR AW/FW
bits and I think there is an issue.
During an SCR write an initial valid mask is set from SCR_MASK which is
defined to not include these bits. Then these bits are hard-coded into the
write value using RES1. Last
On Tue, Aug 12, 2014 at 02:44:09PM -0400, John Snow wrote:
> Currently, if the block device backing the IDE drive is resized,
> the information about the device as cached inside of the IDEState
> structure is not updated, thus when a guest OS re-queries the drive,
> it is unable to see the expanded
John Snow writes:
> Currently, if the block device backing the IDE drive is resized,
> the information about the device as cached inside of the IDEState
> structure is not updated, thus when a guest OS re-queries the drive,
> it is unable to see the expanded size.
>
> This patch adds a resize cal
On 08/13/2014 11:38 AM, Benoît Canet wrote:
The Tuesday 12 Aug 2014 à 16:12:57 (-0300), Daniel Henrique Barboza wrote :
The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the remote server configuration and network
traffic. The user should be able to set how much l
Am 12.08.2014 um 17:30 hat Eric Blake geschrieben:
> On 08/12/2014 08:14 AM, 吴兴博 wrote:
> >>> However FVD seems to have been ignored by community.
> >>
> >> Care to give a pointer to a URL describing the FVD format?
> >>
> >> http://lists.nongnu.org/archive/html/qemu-devel/2011-01/msg00398.html
> >
The curl hardcoded timeout (5 seconds) sometimes is not long
enough depending on the remote server configuration and network
traffic. The user should be able to set how much long he is
willing to wait for the connection.
Adding a new option to set this timeout gives the user this
flexibility. The
Changes in v3:
- changed option name from 'curltimeout' to 'timeout'
Changes in v2:
- remove double quote from the int value in qemu-options.hx
Daniel Henrique Barboza (1):
block.curl: adding 'timeout' option
block/curl.c| 13 -
qemu-options.hx | 10 --
2 files changed
Am 12.08.2014 um 01:38 hat 吴兴博 geschrieben:
> Hello,
>
> The introduction in the wiki page present several advantages of qcow2 [1].
> But I'm a little confused. I really appreciate if any one can give me some
> help
> on this :).
>
> (1) Currently the raw format doesn't support COW. In other
Take IRQ target mask into account when determining the highest priority
pending interrupt.
Signed-off-by: Sergey Fedorov
---
hw/intc/arm_gic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c
index 1532ef9..a5ad7b9 100644
--- a/hw/intc/a
On 08/12/2014 10:02 AM, Artyom Tarasenko wrote:
> Implement Short Floating-Point Store Instructions as described
> in the chapter 13.5.2 of UltraSPARC-IIi User's Manual.
>
> Particularly this instructions are used by NetBSD 4.0.1+ /sparc64
>
> Signed-off-by: Artyom Tarasenko
> Tested-by: Mark Ca
On Wed, Aug 13, 2014 at 11:54 AM, Kevin Wolf wrote:
> Am 12.08.2014 um 01:38 hat 吴兴博 geschrieben:
>> Hello,
>>
>> The introduction in the wiki page present several advantages of qcow2 [1].
>> But I'm a little confused. I really appreciate if any one can give me some
>> help
>> on this :).
>>
>>
On Tue, Aug 12, 2014 at 01:41:48PM +0200, Marc Marí wrote:
> Signed-off-by: Paolo Bonzini
> Signed-off-by: Marc Marí
> ---
> tests/libqtest.c |7 ++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Reviewed-by: Stefan Hajnoczi
pgpP3YN3tB85y.pgp
Description: PGP signature
On Tue, Aug 12, 2014 at 01:41:46PM +0200, Marc Marí wrote:
> Virtio header has been changed to compile and work with a real device.
> Functions bus_foreach and device_find have been implemented for PCI.
> Virtio-blk test case now opens a fake device.
>
> Signed-off-by: Marc Marí
> ---
> tests/Ma
On Tue, Aug 12, 2014 at 01:41:47PM +0200, Marc Marí wrote:
> +static uint64_t qvirtio_pci_config_readq(QVirtioDevice *d, void *addr)
> +{
> +QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
> +return qpci_io_readl(dev->pdev, addr) | qpci_io_readl(dev->pdev, addr+4);
This is broken because it
On Tue, Aug 12, 2014 at 01:41:50PM +0200, Marc Marí wrote:
> Reviewed-by: John Snow
> Reviewed-by: Stefan Hajnoczi
> Signed-off-by: Marc Marí
> ---
> tests/libqos/malloc.h |2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/q
On Tue, Aug 12, 2014 at 01:41:48PM +0200, Marc Marí wrote:
> Signed-off-by: Paolo Bonzini
> Signed-off-by: Marc Marí
> ---
> tests/libqtest.c |7 ++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
On Tue, Aug 12, 2014 at 01:41:51PM +0200, Marc Marí wrote:
> Without this correction, only a three descriptor layout is accepted, and
> requests with just two descriptors are not completed and no error message is
> displayed.
>
> Signed-off-by: Stefan Hajnoczi
> Signed-off-by: Marc Marí
> ---
>
On Tue, Aug 12, 2014 at 01:41:49PM +0200, Marc Marí wrote:
> Reviewed-by: John Snow
> Reviewed-by: Stefan Hajnoczi
> Signed-off-by: Paolo Bonzini
> Signed-off-by: Marc Marí
> ---
> tests/libqos/malloc-pc.c |2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block
Signed-off-by: Peter Lieven
---
qemu-nbd.c | 75 +++-
1 file changed, 39 insertions(+), 36 deletions(-)
diff --git a/qemu-nbd.c b/qemu-nbd.c
index 6ef8b10..9bc152e 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -39,10 +39,10 @@
#include
#
Signed-off-by: Peter Lieven
Reviewed-by: Eric Blake
---
qemu-nbd.c | 25 +
1 file changed, 25 insertions(+)
diff --git a/qemu-nbd.c b/qemu-nbd.c
index 626e584..6ef8b10 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -18,11 +18,13 @@
#include "qemu-common.h"
#include "b
On Tue, Aug 12, 2014 at 01:41:52PM +0200, Marc Marí wrote:
> +/* Check power of 2 */
> +aux = vq->size;
> +while ((aux & 1) != 0) {
> +aux = aux >> 1;
> +}
> +g_assert_cmpint(aux, !=, 1);
Power of 2 can be tested like this without a while loop:
g_assert_cmpint(vq->size
relaxing the license to LGPLv2+ is intentional.
Suggested-by: Markus Armbruster
Signed-off-by: Hu Tao
Signed-off-by: Peter Lieven
Reviewed-by: Eric Blake
---
blockdev.c | 30 ++
include/qapi/util.h | 17 +
qapi/Makefile.objs |2 +-
Currently, if the block device backing the IDE drive is resized,
the information about the device as cached inside of the IDEState
structure is not updated, thus when a guest OS re-queries the drive,
it is unable to see the expanded size.
This patch adds a resize callback that updates the IDENTIFY
v1->v2: - state that relaxing the license for qapi-util.c to LGPLv2+
was intentional [Eric]
- split the qemu-nbd patch into 2 pieces [Eric]
Peter Lieven (3):
rename parse_enum_option to qapi_enum_parse and make it public
qemu-nbd: add option to set detect-zeroes mode
qemu-n
On Tue, Aug 12, 2014 at 01:41:54PM +0200, Marc Marí wrote:
> @@ -349,7 +359,7 @@ int main(int argc, char **argv)
> g_test_init(&argc, &argv, NULL);
>
> g_test_add_func("/virtio/blk/pci/basic", pci_basic);
> -g_test_add_func("/virtio/blk/pci/indirect", pci_indirect);
> +g_test_ad
Hello,
Using qemu2.1 I'm starting a vm with this network interface:
[netdev "vifA.0"]
type = "tap"
vhost = "on"
ifname = "vifA.0"
downscript = "no"
script = "no"
queues = "2"
[device "vifA.0"]
driver = "virtio-net-pci"
netdev = "vifA.0"
mac = "00:16:3e:1a:4e:11"
mq = "on"
v
On 08/13/2014 11:20 AM, Peter Lieven wrote:
> Signed-off-by: Peter Lieven
> ---
> qemu-nbd.c | 75
> +++-
> 1 file changed, 39 insertions(+), 36 deletions(-)
Reviewed-by: Eric Blake
Thanks for splitting the trivia from the meat in 2/3.
Am 13.08.2014 um 18:38 hat Xingbo Wu geschrieben:
> On Wed, Aug 13, 2014 at 11:54 AM, Kevin Wolf wrote:
> > Am 12.08.2014 um 01:38 hat 吴兴博 geschrieben:
> >> Hello,
> >>
> >> The introduction in the wiki page present several advantages of qcow2
> >> [1].
> >> But I'm a little confused. I really
On Wed, Aug 13, 2014 at 8:03 PM, William Dauchy wrote:
> Using qemu2.1 I'm starting a vm with this network interface:
>
> [netdev "vifA.0"]
> type = "tap"
> vhost = "on"
> ifname = "vifA.0"
> downscript = "no"
> script = "no"
> queues = "2"
>
> [device "vifA.0"]
> driver = "virtio-ne
On Wed, Aug 13, 2014 at 09:47:40PM +0800, Hengjinxiao wrote:
> Sometimes it is necessary to test whether virtio-net can send and receive
> packets
> normally, just as e1000 does. This patch adds loopback for virtio-net, when
> the
> command 'VIRTIO_NET_CTRL_LOOPBACK_SET' is sent from front-end dr
This series of patches is the result of executing the Linux Test Program
(LTP) System Call bucket (https://github.com/linux-test-project/ltp)
on the 64 bit big and little endian linux user mode targets for Power.
Some of the changes are not technically unique to Power, but are effectively
so. For
The 64 bit PowerPC platforms eliminate the _unused1 and _unused2
elements of the semid_ds structure from . So eliminate
these from the target_semid_ds structure.
Signed-off-by: Tom Musta
---
linux-user/syscall.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/linux-
When the ipc system call is used to wrap a semctl system call,
the ptr argument to ipc needs to be dereferenced prior to passing
it to the semctl handler. This is because the fourth argument to
semctl is a union and not a pointer to a union.
Signed-off-by: Tom Musta
---
V2: This is unchanged fr
The argument to the mlockall system call is not necessarily the same on
all platforms and thus may require translation prior to passing to the
host.
For example, PowerPC 64 bit platforms define values for MCL_CURRENT
(0x2000) and MCL_FUTURE (0x4000) which are different from Intel platforms
(0x1 an
The mq_open system call takes an optional struct mq_attr pointer
argument in the fourth position. This pointer is used when O_CREAT
is specified in the flags (second) argument. It may be NULL, in
which case the queue is created with implementation defined attributes.
Change the code to properly
The semun union used in the semctl system call contains both an int (val) and
pointers. In cross-endian situations on 64 bit targets, the value passed to
semctl is an 8 byte (abi_long) value and thus does not have the 4-byte val
field in the correct location. In order to rectify this, the other h
For those target ABIs that use the ipc system call (e.g. POWER),
the third argument is used in the shmat path as a pointer. It
therefore must be declared as an abi_long (versus int) so that
the address bits are not lost in truncation. In fact, all arguments
to do_ipc should be declared as abit_lo
The msgsnd system call takes an argument that describes the message
size (msgsz) and is of type size_t. The system call should set
errno to EINVAL in the event that a negative message size is passed.
Signed-off-by: Tom Musta
Reviewed-by: Peter Maydell
---
linux-user/syscall.c |6 +-
1
The sched_getparam, sched_setparam and sched_setscheduler system
calls take a pointer argument to a sched_param structure. When
this pointer is null, errno should be set to EINVAL.
Signed-off-by: Tom Musta
---
V2: Including sched_setscheduler in the changes per Peter Maydell's
review.
linux-us
Properly detect a fault when attempting to store into an invalid
struct timespec pointer.
Signed-off-by: Tom Musta
Reviewed-by: Peter Maydell
---
V2: Peter has observed that there are other call sites that may need to
be fixed. I will address that in future patch(es).
linux-user/syscall.c |
The clock_nanosleep syscall is unusual in that it returns positive
numbers in error handling situations, versus returning -1 and setting
errno, or returning a negative errno value. On POWER, the kernel will
set the SO bit of CR0 to indicate failure in a syscall. QEMU has
generic handling to do th
The get_ppc64_abi is used to determine the ELF ABI (i.e. V1 or V2). This
routine is currently implemented in the linux-user/elfload.c file but
is useful in other scenarios. Move the routine to a more generally
available location (linux-user/ppc/target_cpu.h).
Signed-off-by: Tom Musta
---
V3: new
Although not technically not required by POSIX, the writev system call will
typically write out its buffers individually. That is, if the first buffer
is written successfully, but the second buffer pointer is invalid, then
the first chuck will be written and its size is returned.
Signed-off-by: T
1 - 100 of 162 matches
Mail list logo