Re: [Qemu-devel] [PATCH 11/17] add argument ram_addr_t to hook_ram_load

2013-12-26 Thread Michael R. Hines
On 12/02/2013 05:19 PM, Lei Li wrote: Adds argument ram_addr_t to hook_ram_load, and replaces QEMURamHookFunc with QEMURamLoadHookFunc for it. With this new argument, it will allow cut almost half of the data transferred on the Unix socket using by page flipping migraton. Signed-off-by: Lei Li

Re: [Qemu-devel] [PATCH 07/17] save_page: replace block_offset with a MemoryRegion

2013-12-26 Thread Michael R. Hines
On 12/02/2013 05:19 PM, Lei Li wrote: This patch exports MemoryRegion to save_page hook, replacing argument ram_addr_t block_offset with a MemoryRegion suggested by Paolo Bonzini. Signed-off-by: Lei Li --- arch_init.c |4 ++-- include/migration/migration.h |2 +- i

Re: [Qemu-devel] [PATCH v2 00/24] block: Support for 512b-on-4k emulatio

2013-12-26 Thread Wenchao Xia
For patch 9, 11-18, 20-24 Reviewed-by: Wenchao Xia For patch 10, I am not sure whether there is a risk to bypass I/O limit when bytes is too small: bdrv_io_limits_intercept(bs, bytes >> BDRV_SECTOR_BITS, false);

Re: [Qemu-devel] [PATCH v2 19/24] block: Allow wait_serialising_requests() at any point

2013-12-26 Thread Wenchao Xia
于 2013/12/13 21:22, Kevin Wolf 写道: > We can only have a single wait_serialising_requests() call per request > because otherwise we can run into deadlocks where requests are waiting > for each other. do you mean: mark_request_serialising(req) ... wait_serialising_requests(req); ... wait_serialisin

Re: [Qemu-devel] [RFC PATCH] qcow2: add a readahead cache for qcow2_decompress_cluster

2013-12-26 Thread Fam Zheng
On 2013年12月27日 00:19, Peter Lieven wrote: while evaluatiing compressed qcow2 images as a good basis for virtual machine templates I found out that there are a lot of partly redundant (compressed clusters have common physical sectors) and relatively short reads. This doesn't hurt if the image res

[Qemu-devel] [RFC PATCH v4 1/4] qapi: introduce PreallocMode

2013-12-26 Thread Hu Tao
This patch prepares for the subsequent patches. Signed-off-by: Hu Tao --- block/qcow2.c| 8 qapi-schema.json | 12 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index f29aa88..729dac6 100644 --- a/block/qcow2.c +++ b/bloc

[Qemu-devel] [RFC PATCH v4 2/4] raw, qcow2: don't convert file size to sector size

2013-12-26 Thread Hu Tao
and avoid convert it back later. Signed-off-by: Hu Tao --- block/qcow2.c | 8 block/raw-posix.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 729dac6..f0a8d87 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1561,7 +15

[Qemu-devel] [RFC PATCH v4 3/4] raw-posix: Add full image preallocation option

2013-12-26 Thread Hu Tao
This patch adds a new option preallocation for raw format, and implements full preallocation. Signed-off-by: Hu Tao --- block/raw-posix.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/block/raw-posix.c b/block/raw-posix.c index 6f6b8c1..a722d

[Qemu-devel] [RFC PATCH v4 0/4] qemu-img: add preallocation=full

2013-12-26 Thread Hu Tao
This series implements full image preallocation to create a non-sparse image file at creation time, both for raw and qcow2 format. The purpose is to avoid performance deterioration of the guest cause by sparse image. v4: - remove bdrv_preallocate and make preallocation a bdrv_create_file option

[Qemu-devel] [RFC PATCH v4 4/4] qcow2: Add full image preallocation option

2013-12-26 Thread Hu Tao
This adds a preallocation=full mode to qcow2 image creation, which creates a non-sparse image file. Signed-off-by: Hu Tao --- block/qcow2.c | 48 +--- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index f0

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Alexey Kardashevskiy
On 12/27/2013 02:12 AM, Michael S. Tsirkin wrote: > On Fri, Dec 27, 2013 at 01:59:19AM +1100, Alexey Kardashevskiy wrote: >> On 12/27/2013 12:48 AM, Michael S. Tsirkin wrote: >>> On Thu, Dec 26, 2013 at 11:51:04PM +1100, Alexey Kardashevskiy wrote: On 12/26/2013 09:49 PM, Michael S. Tsirkin wr

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Peter Maydell
On 27 December 2013 00:54, Peter Crosthwaite wrote: > Your bootstrap process is just "blob this file at this address" which to me > is legitimate generic functionality. If you implement arbitrary file > blobbing on Cmd line there are many applications across all archs and plats. > and you fex case

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Peter Crosthwaite
On Dec 27, 2013 10:24 AM, "Li Guang" wrote: > > Peter Maydell wrote: >> >> On 26 December 2013 19:40, Hans de Goede wrote: >> >>> >>> I'm one of the linux-sunxi developers, the only reason we've >>> this fex file abomination, is because we've inherited it >>> from the android-allwinner sources. >

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Peter Maydell
On 27 December 2013 00:21, Li Guang wrote: > Peter Maydell wrote: >> On 26 December 2013 19:40, Hans de Goede wrote: >>> I'm one of the linux-sunxi developers, the only reason we've >>> this fex file abomination, is because we've inherited it >>> from the android-allwinner sources. >> Thanks for

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Li Guang
Peter Maydell wrote: On 26 December 2013 19:40, Hans de Goede wrote: I'm one of the linux-sunxi developers, the only reason we've this fex file abomination, is because we've inherited it from the android-allwinner sources. Thanks for the clarification; I suspected that might be the c

Re: [Qemu-devel] [PATCH v2 56/60] target-i386: Tidy gen_add_A0_im

2013-12-26 Thread Peter Maydell
On 26 December 2013 19:10, Richard Henderson wrote: > On 12/26/2013 10:58 AM, Peter Maydell wrote: >>> @@ -6231,7 +6214,7 @@ static target_ulong disas_insn(CPUX86State *env, >>> DisasContext *s, >>> exception */ >>> gen_op_jmp_T0(); >>> /* pop selector */

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 20:19 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 07:15:00PM +0200, Marcel Apfelbaum wrote: > > On Thu, 2013-12-26 at 18:51 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 26, 2013 at 06:12:25PM +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 26, 2013 at

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Peter Maydell
On 26 December 2013 19:40, Hans de Goede wrote: > I'm one of the linux-sunxi developers, the only reason we've > this fex file abomination, is because we've inherited it > from the android-allwinner sources. Thanks for the clarification; I suspected that might be the case. > Currently most of th

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Peter Maydell
On 26 December 2013 21:27, Peter Maydell wrote: > Why is it OK to skip the addition of the base address for ES > (in the movl_A0_EDI case) when the comment for addseg says > it only applies to CS/DS/ES? Scratch that, misread of the comment. addseg applies to DS/ES/SS. > Why is it not OK to skip

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Peter Maydell
On 26 December 2013 19:31, Richard Henderson wrote: > On 12/26/2013 10:38 AM, Peter Maydell wrote: >> The old MO_16 code for gen_string_movl* doesn't care >> about s->addseg, and always performs an add of a segment. >> This new code might stop without doing the addition. > > The only time s->addse

Re: [Qemu-devel] [PATCH] allwinner-a10: add config script support

2013-12-26 Thread Hans de Goede
Hi, On 12/26/2013 01:58 AM, Li Guang wrote: Peter Maydell wrote: On 26 December 2013 00:39, Li Guang wrote: Peter Maydell wrote: On 26 December 2013 00:14, Li Guang wrote: it's the approach sunxi-linux kernel config hardware, the binary is actually a transformed text script, and context o

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Richard Henderson
On 12/26/2013 10:38 AM, Peter Maydell wrote: > The old MO_16 code for gen_string_movl* doesn't care > about s->addseg, and always performs an add of a segment. > This new code might stop without doing the addition. The only time s->addseg will be false in 16-bit mode is during translation of LEA.

Re: [Qemu-devel] [PATCH v2 56/60] target-i386: Tidy gen_add_A0_im

2013-12-26 Thread Richard Henderson
On 12/26/2013 10:58 AM, Peter Maydell wrote: > On 29 November 2013 03:00, Richard Henderson wrote: >> Merge gen_op_addl_A0_im and gen_op_addq_A0_im into gen_add_A0_im >> and clean up the ifdef. >> >> Replace the one remaining user of gen_op_addl_A0_im with gen_add_A0_im. >> >> Signed-off-by: Richa

Re: [Qemu-devel] [PATCH v2 00/60] target-i386 improvements

2013-12-26 Thread Peter Maydell
On 23 December 2013 22:54, Peter Maydell wrote: > Otherwise, patches 1 to 38 > Reviewed-by: Peter Maydell Patches 39, 40, 44, 45, 50..55, 57..60 also Reviewed-by: Peter Maydell Patch 56 I have a query on. Patches 41..43 and 46..49 all involve the lea_v function, regarding which see my comments

Re: [Qemu-devel] [PATCH v2 56/60] target-i386: Tidy gen_add_A0_im

2013-12-26 Thread Peter Maydell
On 29 November 2013 03:00, Richard Henderson wrote: > Merge gen_op_addl_A0_im and gen_op_addq_A0_im into gen_add_A0_im > and clean up the ifdef. > > Replace the one remaining user of gen_op_addl_A0_im with gen_add_A0_im. > > Signed-off-by: Richard Henderson > --- > target-i386/translate.c | 27 +

Re: [Qemu-devel] [PATCH v2 41/60] target-i386: Create gen_lea_v_seg

2013-12-26 Thread Peter Maydell
On 29 November 2013 03:00, Richard Henderson wrote: > Add forgotten zero-extension in the TARGET_X86_64, !CODE64, ss32 case; > use this new function to implement gen_string_movl_A0_EDI, > gen_string_movl_A0_ESI, gen_add_A0_ds_seg. I'm afraid I can't figure out how this code matches up with the pr

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 07:15:00PM +0200, Marcel Apfelbaum wrote: > On Thu, 2013-12-26 at 18:51 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 06:12:25PM +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 26, 2013 at 05:58:09PM +0200, Marcel Apfelbaum wrote: > > > > On Thu, 2013-12-26

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 18:51 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 06:12:25PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 05:58:09PM +0200, Marcel Apfelbaum wrote: > > > On Thu, 2013-12-26 at 17:41 +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 26, 2013 at

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 06:12:25PM +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 05:58:09PM +0200, Marcel Apfelbaum wrote: > > On Thu, 2013-12-26 at 17:41 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 26, 2013 at 04:09:58PM +0200, Marcel Apfelbaum wrote: > > > > On Thu, 2013-12-26

[Qemu-devel] [RFC PATCH] qcow2: add a readahead cache for qcow2_decompress_cluster

2013-12-26 Thread Peter Lieven
while evaluatiing compressed qcow2 images as a good basis for virtual machine templates I found out that there are a lot of partly redundant (compressed clusters have common physical sectors) and relatively short reads. This doesn't hurt if the image resides on a local filesystem where we can bene

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 05:58:09PM +0200, Marcel Apfelbaum wrote: > On Thu, 2013-12-26 at 17:41 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 04:09:58PM +0200, Marcel Apfelbaum wrote: > > > On Thu, 2013-12-26 at 15:53 +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 26, 2013 at 0

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 17:41 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 04:09:58PM +0200, Marcel Apfelbaum wrote: > > On Thu, 2013-12-26 at 15:53 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 26, 2013 at 03:24:28PM +0200, Marcel Apfelbaum wrote: > > > > On Thu, 2013-12-26 at 14:

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 04:09:58PM +0200, Marcel Apfelbaum wrote: > On Thu, 2013-12-26 at 15:53 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 03:24:28PM +0200, Marcel Apfelbaum wrote: > > > On Thu, 2013-12-26 at 14:46 +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 26, 2013 at 0

[Qemu-devel] [PATCH resend 5/7] acpi unit-test: extract iasl executable from configuration

2013-12-26 Thread Marcel Apfelbaum
The test checked if iasl is installed by running "iasl" and checking the error output. It is better to use the iasl executable as appears in configuration. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test.c | 31 --- 1 file changed, 8 insertions(+), 23 deletions(-)

[Qemu-devel] [PATCH resend 4/7] configure: add CONFIG_IASL to config-host.h

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-tests will extract iasl executable from CONFIG_IASL define. Signed-off-by: Marcel Apfelbaum --- scripts/create_config | 4 1 file changed, 4 insertions(+) diff --git a/scripts/create_config b/scripts/create_config index b1adbf5..06f5316 100755 --- a/scripts/create_config +++ b/sc

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Michael S. Tsirkin
On Fri, Dec 27, 2013 at 01:59:19AM +1100, Alexey Kardashevskiy wrote: > On 12/27/2013 12:48 AM, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 11:51:04PM +1100, Alexey Kardashevskiy wrote: > >> On 12/26/2013 09:49 PM, Michael S. Tsirkin wrote: > >>> On Thu, Dec 26, 2013 at 09:13:31PM +1100,

[Qemu-devel] [PATCH resend 7/7] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
When running the test with TEST_ACPI_REBUILD_AML=y environment variable, the test will rebuild and validate the expected aml files. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/tests/acpi

[Qemu-devel] [PATCH resend 2/7] configure: added acpi unit-test files

2013-12-26 Thread Marcel Apfelbaum
Ensure configure will set-up links for the files if the build is created in other directory. Signed-off-by: Marcel Apfelbaum --- configure | 4 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 07b6be3..53a1392 100755 --- a/configure +++ b/configure @@ -4744,6 +4744,

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Alexey Kardashevskiy
On 12/27/2013 12:48 AM, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 11:51:04PM +1100, Alexey Kardashevskiy wrote: >> On 12/26/2013 09:49 PM, Michael S. Tsirkin wrote: >>> On Thu, Dec 26, 2013 at 09:13:31PM +1100, Alexey Kardashevskiy wrote: On 12/25/2013 08:52 PM, Michael S. Tsirkin wr

[Qemu-devel] [PATCH resend 6/7] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. This script rebuild the expected aml files, so the test will pass. It also validates the modifications. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test-data/rebuild-expected-aml.sh | 36 1 file changed,

[Qemu-devel] [PATCH resend 3/7] acpi unit-test: compare DSDT and SSDT tables against expected values

2013-12-26 Thread Marcel Apfelbaum
This test will run only if iasl is installed on the host machine. The test plan: 1. Dumps the ACPI tables as AML on the disk. 2. Runs iasl to disassembly the tables into ASL files. 3. Runs iasl to disassembly the offline AML files into ASL files. 4. Compares the ASL files. The test runs for bo

[Qemu-devel] [PATCH resend 0/7] acpi unit-test: new features

2013-12-26 Thread Marcel Apfelbaum
This resend includes the following: Compare resulting aml vs expected aml: - runs only if iasl is installed on the host machine. - the test plan: 1. Dumps the ACPI tables as AML on the disk. 2. Runs iasl to disassembly the tables into ASL files. 3. Runs iasl to disassembly the offline A

[Qemu-devel] [PATCH resend 1/7] acpi unit-test: add test files

2013-12-26 Thread Marcel Apfelbaum
Added unit-test's expected aml files to be compared with the actual ACPI tables. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test-data/pc/APIC | Bin 0 -> 120 bytes tests/acpi-test-data/pc/DSDT | Bin 0 -> 4407 bytes tests/acpi-test-data/pc/FACP | Bin 0 -> 116 bytes tests/acpi-test-data/p

Re: [Qemu-devel] [PATCH v3 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 16:24 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 04:07:59PM +0200, Marcel Apfelbaum wrote: > > When running the test with TEST_ACPI_REBUILD_AML=y environment > > variable, the test will rebuild and validate the expected aml > > files. > > > > Signed-off-by: Ma

Re: [Qemu-devel] [PATCH v3 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 16:24 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 04:07:59PM +0200, Marcel Apfelbaum wrote: > > When running the test with TEST_ACPI_REBUILD_AML=y environment > > variable, the test will rebuild and validate the expected aml > > files. > > > > Signed-off-by: Ma

Re: [Qemu-devel] [PATCH v2 1/2] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 02:19:49PM +0200, Marcel Apfelbaum wrote: > Acpi unit-test will fail every time the acpi tables change. > This script rebuild the expected aml files, so the test > will pass. It also validates the modifications. > > Signed-off-by: Marcel Apfelbaum > --- > v1 -> v2: > Addre

Re: [Qemu-devel] [PATCH v3 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 04:07:59PM +0200, Marcel Apfelbaum wrote: > When running the test with TEST_ACPI_REBUILD_AML=y environment > variable, the test will rebuild and validate the expected aml > files. > > Signed-off-by: Marcel Apfelbaum > --- > v2 -> v3: > Addressed Michael S. Tsirkin's commen

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 15:53 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 03:24:28PM +0200, Marcel Apfelbaum wrote: > > On Thu, 2013-12-26 at 14:46 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 26, 2013 at 02:19:48PM +0200, Marcel Apfelbaum wrote: > > > > Acpi unit-test will fail

[Qemu-devel] [PATCH v3 1/2] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. This script rebuild the expected aml files, so the test will pass. It also validates the modifications. Signed-off-by: Marcel Apfelbaum --- v2 -> v3: Addressed Michael S. Tsirkin's comments: - Some trailing space v1 -> v2: Addressed Mic

[Qemu-devel] [PATCH v3 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. The series adds a script that rebuilds the expected aml files, so the test will pass. It also validates the modifications. The acpi unit test will rebuild the aml tables if TEST_ACPI_REBUILD_AML environment variable is set. v2 -> v3: Ad

[Qemu-devel] [PATCH v3 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
When running the test with TEST_ACPI_REBUILD_AML=y environment variable, the test will rebuild and validate the expected aml files. Signed-off-by: Marcel Apfelbaum --- v2 -> v3: Addressed Michael S. Tsirkin's comments: - Used qemu_write_full instead of write v1 -> v2: Addressed Michael S. Tsirki

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 03:24:28PM +0200, Marcel Apfelbaum wrote: > On Thu, 2013-12-26 at 14:46 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 02:19:48PM +0200, Marcel Apfelbaum wrote: > > > Acpi unit-test will fail every time the acpi tables change. > > > > > > The series adds a scr

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 11:51:04PM +1100, Alexey Kardashevskiy wrote: > On 12/26/2013 09:49 PM, Michael S. Tsirkin wrote: > > On Thu, Dec 26, 2013 at 09:13:31PM +1100, Alexey Kardashevskiy wrote: > >> On 12/25/2013 08:52 PM, Michael S. Tsirkin wrote: > >>> On Wed, Dec 25, 2013 at 12:36:12PM +1100,

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 14:46 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 02:19:48PM +0200, Marcel Apfelbaum wrote: > > Acpi unit-test will fail every time the acpi tables change. > > > > The series adds a script that rebuilds the expected aml files, so the test > > will pass. It also

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Alexey Kardashevskiy
On 12/26/2013 09:49 PM, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 09:13:31PM +1100, Alexey Kardashevskiy wrote: >> On 12/25/2013 08:52 PM, Michael S. Tsirkin wrote: >>> On Wed, Dec 25, 2013 at 12:36:12PM +1100, Alexey Kardashevskiy wrote: On 12/25/2013 02:43 AM, Michael S. Tsirkin wr

[Qemu-devel] [PATCHv5] block: add native support for NFS

2013-12-26 Thread Peter Lieven
This patch adds native support for accessing images on NFS shares without the requirement to actually mount the entire NFS share on the host. NFS Images can simply be specified by an url of the form: nfs: For example: qemu-img create -f qcow2 nfs://10.0.0.1/qemu-images/test.qcow2 You need Li

Re: [Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 02:19:48PM +0200, Marcel Apfelbaum wrote: > Acpi unit-test will fail every time the acpi tables change. > > The series adds a script that rebuilds the expected aml files, so the test > will pass. It also validates the modifications. > > The acpi unit test will rebuild the

[Qemu-devel] [PATCH v2 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
When running the test with TEST_ACPI_REBUILD_AML=y environment variable, the test will rebuild and validate the expected aml files. Signed-off-by: Marcel Apfelbaum --- v1 -> v2: Addressed Michael S. Tsirkin's comments: - added TEST_ prefix to the environment variable tests/acpi-test.c | 30 ++

[Qemu-devel] [PATCH v2 1/2] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. This script rebuild the expected aml files, so the test will pass. It also validates the modifications. Signed-off-by: Marcel Apfelbaum --- v1 -> v2: Addressed Michael S. Tsirkin's comments: - added TEST_ prefix to the environment varia

[Qemu-devel] [PATCH v2 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. The series adds a script that rebuilds the expected aml files, so the test will pass. It also validates the modifications. The acpi unit test will rebuild the aml tables if TEST_ACPI_REBUILD_AML environment variable is set. v1 -> v2: Ad

Re: [Qemu-devel] [PATCH 1/2] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 12:53 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 12:44:10PM +0200, Marcel Apfelbaum wrote: > > Acpi unit-test will fail every time the acpi tables change. > > This script rebuilds the expected aml files, so the test > > will pass. It also validates the modifica

Re: [Qemu-devel] [PATCH 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
On Thu, 2013-12-26 at 12:56 +0200, Michael S. Tsirkin wrote: > On Thu, Dec 26, 2013 at 12:44:11PM +0200, Marcel Apfelbaum wrote: > > When running the test with ACPI_REBUILD_AML=y environment > > variable, the test will rebuild and validate the expected aml > > files. > > > > Signed-off-by: Marcel

Re: [Qemu-devel] [PATCH 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 12:44:11PM +0200, Marcel Apfelbaum wrote: > When running the test with ACPI_REBUILD_AML=y environment > variable, the test will rebuild and validate the expected aml > files. > > Signed-off-by: Marcel Apfelbaum > --- > tests/acpi-test.c | 30 +-

Re: [Qemu-devel] [PATCH 1/2] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 12:44:10PM +0200, Marcel Apfelbaum wrote: > Acpi unit-test will fail every time the acpi tables change. > This script rebuilds the expected aml files, so the test > will pass. It also validates the modifications. > > Signed-off-by: Marcel Apfelbaum > --- > tests/acpi-test

[Qemu-devel] [PATCH 2/2] acpi unit-test: hook to rebuild expected aml files

2013-12-26 Thread Marcel Apfelbaum
When running the test with ACPI_REBUILD_AML=y environment variable, the test will rebuild and validate the expected aml files. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/tests/acpi-test

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Michael S. Tsirkin
On Thu, Dec 26, 2013 at 09:13:31PM +1100, Alexey Kardashevskiy wrote: > On 12/25/2013 08:52 PM, Michael S. Tsirkin wrote: > > On Wed, Dec 25, 2013 at 12:36:12PM +1100, Alexey Kardashevskiy wrote: > >> On 12/25/2013 02:43 AM, Michael S. Tsirkin wrote: > >>> On Wed, Dec 25, 2013 at 01:15:29AM +1100,

[Qemu-devel] [PATCH 1/2] acpi unit-test: added script to rebuild the expected aml files

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. This script rebuilds the expected aml files, so the test will pass. It also validates the modifications. Signed-off-by: Marcel Apfelbaum --- tests/acpi-test-data/rebuild-expected-aml.sh | 36 1 file changed,

[Qemu-devel] [PATCH 0/2] acpi unit-test: rebuild aml files functionality

2013-12-26 Thread Marcel Apfelbaum
Acpi unit-test will fail every time the acpi tables change. The series adds a script that rebuilds the expected aml files, so the test will pass. It also validates the modifications. The acpi unit test will rebuild the aml table if ACPI_REBUILD_AML environment variable is set. Marcel Apfelbaum (

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2013-12-26 Thread Alexey Kardashevskiy
On 12/25/2013 08:52 PM, Michael S. Tsirkin wrote: > On Wed, Dec 25, 2013 at 12:36:12PM +1100, Alexey Kardashevskiy wrote: >> On 12/25/2013 02:43 AM, Michael S. Tsirkin wrote: >>> On Wed, Dec 25, 2013 at 01:15:29AM +1100, Alexey Kardashevskiy wrote: On 12/24/2013 08:40 PM, Michael S. Tsirkin wr

Re: [Qemu-devel] [PATCHv4] block: add native support for NFS

2013-12-26 Thread Fam Zheng
On 2013年12月26日 14:10, ronnie sahlberg wrote: On Wed, Dec 25, 2013 at 9:42 PM, Fam Zheng wrote: On 2013年12月21日 00:04, Peter Lieven wrote: This patch adds native support for accessing images on NFS shares without the requirement to actually mount the entire NFS share on the host. NFS Images ca