Re: [Qemu-devel] [PATCH 2/3] target-mips:enabling of 64 bit user mode and floating point operations MIPS_HFLAG_UX is included in env->hflags so that the address computation for LD instruction does not

2011-12-28 Thread Khansa Butt
On Fri, Dec 9, 2011 at 5:04 AM, Andreas Färber wrote: > Thanks for extending the commit description. Please see this for a > template though: > > http://live.gnome.org/Git/CommitMessages > > Looks like there's an empty line missing between subject and description > (and the space after "target-mip

Re: [Qemu-devel] [PATCH 3/3] Changes related to secondary buses and 64bit regions

2011-12-28 Thread Alexey Korolev
On 29/12/11 00:43, Michael S. Tsirkin wrote: On Wed, Dec 28, 2011 at 06:35:55PM +1300, Alexey Korolev wrote: All devices behind a bridge need to have all their regions consecutive and not overlapping with all the normal memory ranges. Since prefetchable memory is described by one record, we must

Re: [Qemu-devel] [PATCH 3/3] Changes related to secondary buses and 64bit regions

2011-12-28 Thread Alexey Korolev
On 29/12/11 00:43, Michael S. Tsirkin wrote: On Wed, Dec 28, 2011 at 06:35:55PM +1300, Alexey Korolev wrote: All devices behind a bridge need to have all their regions consecutive and not overlapping with all the normal memory ranges. Since prefetchable memory is described by one record, we must

Re: [Qemu-devel] [PATCH 2/3] Add a new PCI region type to supports 64 bit ranges

2011-12-28 Thread Alexey Korolev
@@ -69,6 +72,8 @@ static enum pci_region_type pci_addr_to_type(u32 addr) { if (addr& PCI_BASE_ADDRESS_SPACE_IO) return PCI_REGION_TYPE_IO; +if (addr& PCI_BASE_ADDRESS_MEM_TYPE_64) +return PCI_REGION_TYPE_PREFMEM_64; This seems dangerous - a 64bit bar can be non-p

Re: [Qemu-devel] [PATCH 2/3] Add a new PCI region type to supports 64 bit ranges

2011-12-28 Thread Alexey Korolev
On 29/12/11 15:56, Kevin O'Connor wrote: On Wed, Dec 28, 2011 at 06:26:05PM +1300, Alexey Korolev wrote: This patch adds PCI_REGION_TYPE_PREFMEM_64 region type and modifies types of variables to make it possible to work with 64 bit addresses. Why I've added just one region type PCI_REGION_TYPE_

Re: [Qemu-devel] [PATCH 2/3] Add a new PCI region type to supports 64 bit ranges

2011-12-28 Thread Alexey Korolev
On 29/12/11 00:30, Michael S. Tsirkin wrote: On Wed, Dec 28, 2011 at 06:26:05PM +1300, Alexey Korolev wrote: This patch adds PCI_REGION_TYPE_PREFMEM_64 region type and modifies types of variables to make it possible to work with 64 bit addresses. Why I've added just one region type PCI_REGION_T

Re: [Qemu-devel] [PATCH 2/3] Add a new PCI region type to supports 64 bit ranges

2011-12-28 Thread Kevin O'Connor
On Wed, Dec 28, 2011 at 06:26:05PM +1300, Alexey Korolev wrote: > This patch adds PCI_REGION_TYPE_PREFMEM_64 region type and modifies types of > variables to make it possible to work with 64 bit addresses. > > Why I've added just one region type PCI_REGION_TYPE_PREFMEM_64 and haven't > added PCI_R

[Qemu-devel] [PATCH 04/21] arch_init: refactor host_from_stream_offset()

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 25 ++--- arch_init.h |9 + 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 5ad6956..d55e39c 100644 --- a/arch_init.c +++ b/arch_init.c @@ -335,21 +335,22 @@ int ram_s

[Qemu-devel] [PATCH 11/21] savevm: export qemu_peek_buffer, qemu_peek_byte, qemu_file_skip

2011-12-28 Thread Isaku Yamahata
Those will be used by postcopy. Signed-off-by: Isaku Yamahata --- hw/hw.h |3 +++ savevm.c |6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index efa04d1..0b481ba 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -77,6 +77,9 @@ void qemu_put_be32(QEMUFile

[Qemu-devel] [PATCH 18/21] configure: add CONFIG_POSTCOPY option

2011-12-28 Thread Isaku Yamahata
Add enable/disable postcopy mode. No dynamic test yet. Signed-off-by: Isaku Yamahata --- configure | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 640e815..440fa9e 100755 --- a/configure +++ b/configure @@ -190,6 +190,7 @@ opengl="

[Qemu-devel] [PATCH 07/21] arch_init/ram_save_live: factor out ram_save_limit

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 28 +--- migration.h |1 + 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/arch_init.c b/arch_init.c index 982c846..249b440 100644 --- a/arch_init.c +++ b/arch_init.c @@ -261,9 +261,24 @@ void ram_save_

[Qemu-devel] [PATCH 05/21] arch_init/ram_save_live: factor out RAM_SAVE_FLAG_MEM_SIZE case

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 21 ++--- migration.h |1 + 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index d55e39c..9bc313e 100644 --- a/arch_init.c +++ b/arch_init.c @@ -243,6 +243,19 @@ void sort_ram_list(voi

[Qemu-devel] [PATCH 17/21] update-linux-headers.sh: teach umem.h to update-linux-headers.sh

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- scripts/update-linux-headers.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 9d2a4bc..2afdd54 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-li

[Qemu-devel] [PATCH 08/21] arch_init/ram_load: refactor ram_load

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 67 +- arch_init.h |1 + 2 files changed, 39 insertions(+), 29 deletions(-) diff --git a/arch_init.c b/arch_init.c index 249b440..bc53092 100644 --- a/arch_init.c +++ b/arch_init.c @@ -3

[Qemu-devel] [PATCH 13/21] savevm, buffered_file: introduce method to drain buffer of buffered file

2011-12-28 Thread Isaku Yamahata
Introduce a new method to drain the buffer of QEMUBufferedFile. When postcopy migration, buffer size can increase unboundedly. To keep the buffer size reasonably small, introduce the method to wait for buffer to drain. Signed-off-by: Isaku Yamahata --- buffered_file.c | 20 +++-

[Qemu-devel] [PATCH 03/21] arch_init/ram_save: introduce constant for ram save version = 4

2011-12-28 Thread Isaku Yamahata
Introduce RAM_SAVE_VERSION_ID to represent version_id for ram save format. Signed-off-by: Isaku Yamahata --- arch_init.c |2 +- arch_init.h |2 ++ vl.c|4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index 4ede5ad..5ad6956 1006

[Qemu-devel] [PATCH 1/2] export necessary symbols

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- mm/memcontrol.c |1 + mm/shmem.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index b63f5f7..85530fc 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2807,6 +2807,7 @@ int mem_cgroup_cac

[Qemu-devel] [PATCH 01/21] arch_init: export sort_ram_list() and ram_save_block()

2011-12-28 Thread Isaku Yamahata
This will be used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c |4 ++-- migration.h |2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch_init.c b/arch_init.c index d4c92b0..1947396 100644 --- a/arch_init.c +++ b/arch_init.c @@ -112,7 +112,7 @@ static i

[Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2011-12-28 Thread Isaku Yamahata
This is Linux kernel driver for qemu/kvm postcopy live migration. This is used by qemu/kvm postcopy live migration patch. TODO: - Consider FUSE/CUSE option So far several mmap patches for FUSE/CUSE are floating around. (their purpose isn't different from our purpose, though). They haven't merg

[Qemu-devel] [PATCH 02/21] arch_init: export RAM_SAVE_xxx flags for postcopy

2011-12-28 Thread Isaku Yamahata
Those constants will be also used by postcopy. Signed-off-by: Isaku Yamahata --- arch_init.c |7 --- arch_init.h |7 +++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch_init.c b/arch_init.c index 1947396..4ede5ad 100644 --- a/arch_init.c +++ b/arch_init.c @@ -

[Qemu-devel] [PATCH 10/21] exec.c: export last_ram_offset()

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- exec-obsolete.h |1 + exec.c |4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/exec-obsolete.h b/exec-obsolete.h index 34b9fc5..8f69f1c 100644 --- a/exec-obsolete.h +++ b/exec-obsolete.h @@ -25,6 +25,7 @@ #ifndef CONFIG_U

[Qemu-devel] [PATCH 06/21] arch_init: refactor ram_save_block()

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- arch_init.c | 82 +++--- arch_init.h |1 + 2 files changed, 45 insertions(+), 38 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9bc313e..982c846 100644 --- a/arch_init.c +++ b/arch_init.c @@ -1

[Qemu-devel] [PATCH 00/21][RFC] postcopy live migration

2011-12-28 Thread Isaku Yamahata
Intro = This patch series implements postcopy live migration.[1] As discussed at KVM forum 2011, dedicated character device is used for distributed shared memory between migration source and destination. Now we can discuss/benchmark/compare with precopy. I believe there are much rooms for impro

[Qemu-devel] [PATCH 09/21] exec.c: factor out qemu_get_ram_ptr()

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- cpu-all.h |2 ++ exec.c| 51 +-- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 9d78715..0244f7a 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -496,6 +496,8 @@ ext

[Qemu-devel] [PATCH 14/21] migration: export migrate_fd_completed() and migrate_fd_cleanup()

2011-12-28 Thread Isaku Yamahata
This will be used by postcopy migration. Signed-off-by: Isaku Yamahata --- migration.c |4 ++-- migration.h |2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migration.c b/migration.c index 412fdfe..057dde7 100644 --- a/migration.c +++ b/migration.c @@ -166,7 +166,7 @

[Qemu-devel] [PATCH 19/21] postcopy: introduce -postcopy and -postcopy-flags option

2011-12-28 Thread Isaku Yamahata
This patch prepares for postcopy livemigration. It introduces -postcopy option and its internal flag, migration_postcopy. It introduces -postcopy-flags for chaging the behavior of incoming postcopy mainly for benchmark/debug. Signed-off-by: Isaku Yamahata postcopy: introduce -postcopy-flags opti

[Qemu-devel] [PATCH 16/21] umem.h: import Linux umem.h

2011-12-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- linux-headers/linux/umem.h | 83 1 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 linux-headers/linux/umem.h diff --git a/linux-headers/linux/umem.h b/linux-headers/linux/umem.h new file mode 10

[Qemu-devel] [PATCH 12/21] savevm: qemu_pending_size() to return pending buffered size

2011-12-28 Thread Isaku Yamahata
This will be used later by postcopy migration. Signed-off-by: Isaku Yamahata --- hw/hw.h |1 + savevm.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 0b481ba..d508b4e 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -80,6 +80,7 @@ int qemu_get_byt

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Peter Maydell
On 29 December 2011 00:48, Xin Tong wrote: > That is my guess as well in the first place, but my QEMU is built with > CONFIG_IOTHREAD set to 0. Your QEMU is old -- iothread is now the only option (the config option to use not-iothread has gone away). > I am not 100% sure about how interrupts are

Re: [Qemu-devel] [PATCH 0/2][RFC] postcopy migration: Linux char device for postcopy

2011-12-28 Thread Isaku Yamahata
On Thu, Dec 29, 2011 at 10:26:16AM +0900, Isaku Yamahata wrote: > UMEM_DEV_LIST: list created umem devices > UMEM_DEV_REATTACH: re-attach the created umem device > UMEM_DEV_LIST and UMEM_DEV_REATTACH are used when > the process that services page fault disappears or

[Qemu-devel] [PATCH 15/21] migration: factor out parameters into MigrationParams

2011-12-28 Thread Isaku Yamahata
Introduce MigrationParams for parameters of migration. Signed-off-by: Isaku Yamahata --- block-migration.c |8 hw/hw.h |2 +- migration.c | 16 +--- migration.h |8 ++-- qemu-common.h |1 + savevm.c | 12

[Qemu-devel] [PATCH 2/2] umem: chardevice for kvm postcopy

2011-12-28 Thread Isaku Yamahata
This is a character device to hook page access. The page fault in the area is reported to another user process by this chardriver. Then, the process fills the page contents and resolves the page fault. Signed-off-by: Isaku Yamahata --- drivers/char/Kconfig |9 + drivers/char/Makefile |1

[Qemu-devel] [PATCH 20/21] postcopy outgoing: add -p and -n option to migrate command

2011-12-28 Thread Isaku Yamahata
Added -p option to migrate command for postcopy mode and introduce postcopy parameter for migration to indicate that postcopy mode is enabled. Add -n option for postcopy migration which indicates disabling background transfer. Signed-off-by: Isaku Yamahata --- hmp-commands.hx | 12 --

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Xin Tong
That is my guess as well in the first place, but my QEMU is built with CONFIG_IOTHREAD set to 0. I am not 100% sure about how interrupts are delivered in QEMU, my guess is that some kind of timer devices will have to fire and qemu might have installed a signal handler and the signal handler takes

[Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2011-12-28 Thread Liu, Jinsong
>From 3a78adf8006ec6189bfe2f55f7ae213e75bf3815 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Thu, 29 Dec 2011 05:28:12 +0800 Subject: [PATCH 2/2] Expose tsc deadline timer cpuid to guest Depend on several factors: 1. Considering live migration, user enable/disable tsc deadline timer; 2. If gue

[Qemu-devel] [PATCH 1/2] Define KVM_CAP_TSC_DEADLINE_TIMER

2011-12-28 Thread Liu, Jinsong
>From 5afecc308bc25c7fd8d124e7557f08fb067d6caa Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Thu, 29 Dec 2011 01:45:45 +0800 Subject: [PATCH 1/2] Define KVM_CAP_TSC_DEADLINE_TIMER Signed-off-by: Liu, Jinsong Signed-off-by: Jan Kiszka --- linux-headers/linux/kvm.h |1 + 1 files changed,

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Peter Maydell
On 28 December 2011 00:43, Xin Tong wrote: > I modified QEMU to check for interrupt status at the end of every TB > and ran it on SPECINT2000 benchmarks with QEMU 0.15.0. The performance > is 70% of the unmodified one for some benchmarks on a x86_64 host. I > agree that the extra load-test-branch-

Re: [Qemu-devel] [PATCH] Expose tsc deadline timer cpuid to guest

2011-12-28 Thread Jan Kiszka
On 2011-12-28 18:35, Liu, Jinsong wrote: >>> diff --git a/qemu-kvm.h b/qemu-kvm.h >>> index 2bd5602..8c6c2ea 100644 >>> --- a/qemu-kvm.h >>> +++ b/qemu-kvm.h >>> @@ -260,6 +260,7 @@ extern int kvm_irqchip; >>> extern int kvm_pit; >>> extern int kvm_pit_reinject; >>> extern unsigned int kvm_shado

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Lluís Vilanova
Xin Tong writes: > My main concern here is not how timely the interrupts can be handled, > i am more interested in reducing the number of TB enters/exits due to > interrupt. Returning to qemu mainloop requires saving and restoring > register contexts which are expensive, what i am thinking is that

Re: [Qemu-devel] [PATCH] Expose tsc deadline timer cpuid to guest

2011-12-28 Thread Liu, Jinsong
>> diff --git a/qemu-kvm.h b/qemu-kvm.h >> index 2bd5602..8c6c2ea 100644 >> --- a/qemu-kvm.h >> +++ b/qemu-kvm.h >> @@ -260,6 +260,7 @@ extern int kvm_irqchip; >> extern int kvm_pit; >> extern int kvm_pit_reinject; >> extern unsigned int kvm_shadow_memory; >> +extern int tsc_deadline_timer; >>

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Avi Kivity
On 12/28/2011 06:44 PM, Anthony Liguori wrote: > On 12/28/2011 09:28 AM, Avi Kivity wrote: >> On 12/28/2011 05:01 PM, Avi Kivity wrote: >>> I'd say that running a ping test is a weak version of kvm-autotest's >>> system tests. Running a synthetic test that pokes values into memory >>> and mmio and

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Avi Kivity
On 12/28/2011 06:42 PM, Anthony Liguori wrote: >> In fact using linux as a guest negates that. First of all, which linux >> version? if it's fixed, you'll eventually miss functionality and need to >> migrate. If it keeps changing, so does your test, and it will keep >> breaking. > > > The kernel

Re: [Qemu-devel] [PATCH 1/5] vfio: Introduce documentation for VFIO driver

2011-12-28 Thread Ronen Hod
On 12/21/2011 11:42 PM, Alex Williamson wrote: Including rationale for design, example usage and API description. Signed-off-by: Alex Williamson --- Documentation/vfio.txt | 352 1 files changed, 352 insertions(+), 0 deletions(-) create mod

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Xin Tong
My main concern here is not how timely the interrupts can be handled, i am more interested in reducing the number of TB enters/exits due to interrupt. Returning to qemu mainloop requires saving and restoring register contexts which are expensive, what i am thinking is that can we check and handle i

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Anthony Liguori
On 12/28/2011 09:28 AM, Avi Kivity wrote: On 12/28/2011 05:01 PM, Avi Kivity wrote: I'd say that running a ping test is a weak version of kvm-autotest's system tests. Running a synthetic test that pokes values into memory and mmio and sees a packet coming out is a unit test (the latter can in f

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Anthony Liguori
On 12/28/2011 09:01 AM, Avi Kivity wrote: On 12/28/2011 04:27 PM, Anthony Liguori wrote: Maybe I've used the wrong wording. I got the feeling that, besides testing qemu the way you need it, keeping qemu-test simple was really important. Simple is always important. In the case of qemu-test, t

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Anthony Liguori
On 12/28/2011 08:49 AM, Christoph Hellwig wrote: On Mon, Dec 19, 2011 at 11:13:24AM -0600, Anthony Liguori wrote: Hi, I've published a set of tests I wrote over the weekend on qemu.org. My motivations were 1) to prevent regressions like the libguestfs one and 2) to have an easier way to do dev

[Qemu-devel] [PATCH V3 4/5] hw/sd.c: convert wp_switch and spi to bool

2011-12-28 Thread Mitsyanko Igor
Currently several binary variables in SDState represented as bool type while several other represented as int. This patch converts wp_switch and spi variables to bool and modifies rest of the code to treat this variables as bool instead of int. Signed-off-by: Mitsyanko Igor --- hw/sd.c |8 ++

[Qemu-devel] [PATCH V3 3/5] hw/sd.c: convert wp_groups, expecting_acmd and enable to bool

2011-12-28 Thread Mitsyanko Igor
SDState variables wp_groups, expecting_acmd and enable are of bool data type but are currently treated as int type variables by rest of the code. This patch updates sd_enable() and sd_wp_addr() so now they explicitly work with bool type, and replaces 0 and 1 with 'false' and 'true' where it's requ

[Qemu-devel] [PATCH V3 2/5] hw/sd.c: add SD card save/load support

2011-12-28 Thread Mitsyanko Igor
We couldn't properly implement save/restore functionality of SD host controllers states without SD card's state VMStateDescription implementation. This patch updates SD card emulation to support save/load of card's state. Signed-off-by: Mitsyanko Igor --- hw/sd.c | 100 +

[Qemu-devel] [PATCH V3 0/5] Improve SD controllers emulation

2011-12-28 Thread Mitsyanko Igor
Changelog v2->v3: - PATCH 2/3 splitted into smaller patches 2-4/5. - SDState structure rearrengment dropped. v1->v2: PATCH 1/3: - .calc_size field replaced with .get_bufsize field in VMStateField; - .size_offset removed completely, macros based on it rewritten to use new .get_bufsize field.

[Qemu-devel] [PATCH V3 1/5] vmstate: introduce get_bufsize entry in VMStateField

2011-12-28 Thread Mitsyanko Igor
New get_bufsize field in VMStateField is supposed to help us easily add save/restore support of dynamically allocated buffers in device's states. There are some cases when information about size of dynamically allocated buffer is already presented in specific device's state structure, but in such

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Avi Kivity
On 12/28/2011 05:01 PM, Avi Kivity wrote: > I'd say that running a ping test is a weak version of kvm-autotest's > system tests. Running a synthetic test that pokes values into memory > and mmio and sees a packet coming out is a unit test (the latter can in > fact be executed without a guest at al

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Avi Kivity
On 12/28/2011 04:27 PM, Anthony Liguori wrote: >> Maybe I've used the wrong wording. I got the feeling that, besides >> testing qemu >> the way you need it, keeping qemu-test simple was really important. > > > Simple is always important. In the case of qemu-test, there are some > important trade o

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Christoph Hellwig
On Mon, Dec 19, 2011 at 11:13:24AM -0600, Anthony Liguori wrote: > Hi, > > I've published a set of tests I wrote over the weekend on qemu.org. My > motivations were 1) to prevent regressions like the libguestfs one and 2) > to have an easier way to do development testing as I work on QEMU Object

Re: [Qemu-devel] [PATCH V2 2/3] hw/sd.c: add SD card save/load support

2011-12-28 Thread Peter Maydell
On 28 December 2011 14:02, Mitsyanko Igor wrote: > On 12/28/2011 05:26 PM, Peter Maydell wrote: >> Also, why should we care particularly about the order of >> fields in SDState? There will be at most a handful of copies >> of this struct in qemu, costing a handful of bytes in extra >> padding. ("e

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Anthony Liguori
On 12/27/2011 11:01 PM, Cleber Rosa wrote: On 12/27/2011 11:37 PM, Anthony Liguori wrote: I think the main goal of qemu-tests (may be implicit) is to be quick and simple. qemu-test doesn't have a main goal. My goal is to improve QEMU's quality. qemu-test is just a tool to help achieve that goa

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2011-12-28 Thread Cleber Rosa
On 12/27/2011 11:37 PM, Anthony Liguori wrote: On 12/27/2011 04:35 PM, Cleber Rosa wrote: On 12/26/2011 08:00 PM, Dor Laor wrote: On 12/26/2011 05:12 PM, Anthony Liguori wrote: Hi Dor, Merry Christmas Anthony, On 12/25/2011 09:19 AM, Dor Laor wrote: On 12/19/2011 07:13 PM, Anthony Liguor

Re: [Qemu-devel] [PATCH V2 2/3] hw/sd.c: add SD card save/load support

2011-12-28 Thread Mitsyanko Igor
On 12/28/2011 05:26 PM, Peter Maydell wrote: On 28 December 2011 12:08, Mitsyanko Igor wrote: We couldn't properly implement save/restore functionality of SD host controllers states without SD card's state VMStateDescription implementation. This patch updates SD card emulation to support save/l

Re: [Qemu-devel] [PATCH V2 2/3] hw/sd.c: add SD card save/load support

2011-12-28 Thread Peter Maydell
On 28 December 2011 12:08, Mitsyanko Igor wrote: > We couldn't properly implement save/restore functionality of SD host > controllers > states without SD card's state VMStateDescription implementation. This patch > updates SD card emulation to support save/load of card's state. Update > requires

[Qemu-devel] [PATCH V2 2/3] hw/sd.c: add SD card save/load support

2011-12-28 Thread Mitsyanko Igor
We couldn't properly implement save/restore functionality of SD host controllers states without SD card's state VMStateDescription implementation. This patch updates SD card emulation to support save/load of card's state. Update requires changing of data type of several variables in SDState. Variab

[Qemu-devel] [PATCH V2 1/3] vmstate: introduce get_bufsize entry in VMStateField

2011-12-28 Thread Mitsyanko Igor
New get_bufsize field in VMStateField is supposed to help us easily add save/restore support of dynamically allocated buffers in device's states. There are some cases when information about size of dynamically allocated buffer is already presented in specific device's state structure, but in such

[Qemu-devel] [PATCH V2 0/3] Improve SD controllers emulation

2011-12-28 Thread Mitsyanko Igor
Changelog v1->v2: PATCH 1/3: - .calc_size field replaced with .get_bufsize field in VMStateField; - .size_offset removed completely, macros based on it rewritten to use new .get_bufsize field. PATCH 2/3: - all binary variables in SDState now have bool type; - SDState structure rearranged to

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Avi Kivity
On 12/28/2011 01:40 PM, Peter Maydell wrote: > On 28 December 2011 10:42, Avi Kivity wrote: > > It's possible to check for an interrupt before every instruction, > > without any overhead: > > > > - when a signal arrives, check the instruction pointer. If it points > > outside tcg code, set a flag

Re: [Qemu-devel] [PATCH v4 2/7] arm: Set frequencies for arm_timer

2011-12-28 Thread Andreas Färber
Am 28.12.2011 02:24, schrieb Mark Langsdorf: > Use qdev properties to allow board modelers to set the frequencies > for the sp804 timer. Each of the sp804's timers can have an > individual frequency. The timers default to 1MHz. > > Signed-off-by: Mark Langsdorf > Reviewed-by: Peter Maydell Revi

Re: [Qemu-devel] [Seabios] [PATCH 0/3] 64bit PCI BARs allocations

2011-12-28 Thread Michael S. Tsirkin
On Wed, Dec 28, 2011 at 05:41:20PM +1300, Alexey Korolev wrote: > Hi, > > There were a number of requests about support of 64bit PCI BAR allocations. > > Also we have observed the issue on guests with older linux version > (2.6.18): if we > have a 64bit BAR allocated within first 4GB, the OS may

Re: [Qemu-devel] [PATCH 3/3] Changes related to secondary buses and 64bit regions

2011-12-28 Thread Michael S. Tsirkin
On Wed, Dec 28, 2011 at 06:35:55PM +1300, Alexey Korolev wrote: > All devices behind a bridge need to have all their regions consecutive and > not overlapping with all the normal memory ranges. > Since prefetchable memory is described by one record, we must avoid the > situations > when 32bit and

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Peter Maydell
On 28 December 2011 10:42, Avi Kivity wrote: > It's possible to check for an interrupt before every instruction, > without any overhead: > > - when a signal arrives, check the instruction pointer. If it points > outside tcg code, set a flag and return. > - consult a table indexed by the instructio

Re: [Qemu-devel] DMA active hw_error

2011-12-28 Thread Peter Maydell
On 28 December 2011 06:44, Richard Cole wrote: > I'll have to learn quite a bit more about QEMU and arm before I'll be > able to contribute back any patches. I bought a beagle board today so > that at least is a start, being able to compare QEMU to some real > hardware. There's no beagle board mo

Re: [Qemu-devel] [PATCH 2/3] Add a new PCI region type to supports 64 bit ranges

2011-12-28 Thread Michael S. Tsirkin
On Wed, Dec 28, 2011 at 06:26:05PM +1300, Alexey Korolev wrote: > This patch adds PCI_REGION_TYPE_PREFMEM_64 region type and modifies types of > variables to make it possible to work with 64 bit addresses. > > Why I've added just one region type PCI_REGION_TYPE_PREFMEM_64 and haven't > added PCI_R

Re: [Qemu-devel] [PATCH 3/3] linux-user:Signal handling for MIPS64

2011-12-28 Thread Khansa Butt
On Wed, Dec 14, 2011 at 9:20 PM, Richard Henderson wrote: > On 12/07/2011 09:25 PM, kha...@kics.edu.pk wrote: >> +#if defined(TARGET_MIPS64) >> +        /* tswapal() do 64 bit swap in case of MIPS64 but >> +           we need 32 bit swap as sa_flags is 32 bit */ >> +        k->sa_flags = bswap32(a

Re: [Qemu-devel] interrupt handling in qemu

2011-12-28 Thread Avi Kivity
On 12/28/2011 01:12 AM, Xin Tong wrote: > QEMU does not exit and handle interrupt within translation blocks. it > only exits after the translation block is finished. Assuming a > translation block is very long, is it possible that QEMU could have > exceeded the interrupt's "timing window" and yield

[Qemu-devel] [PATCH] Fix qapi code generation fix

2011-12-28 Thread Avi Kivity
The fixes to qapi code generation had multiple bugs: - the Null class used to drop output was missing some methods - in some scripts it was never instantiated, leading to a None return, which is missing even more methods - the --source and --header options were swapped Luckily, all those bugs we

[Qemu-devel] DERNIER RAPPEL. Profitez des offres de décembre sur Mes-Contacts

2011-12-28 Thread Mes-Contacts
Cher(s)  CLIENTS,   cgp(s) indépendant(s), cabinet(s) de commercilisation, promoteur(s)... Rendez-vous sur www.mes-contacts.com (recommandé par les promoteurs) pour obtenir maintenant les meilleurs Contacts entrants en Défiscalisation et Placements financiers (Ass.vie, SCPI,mutuelle,retraite..)

[Qemu-devel] virtio-net with virtio-mmio

2011-12-28 Thread Ying-Shiuan Pan
Hi, all: I'm very interested in virtio-mmio Peter Maydell did for QEMU, (http://lists.nongnu.org/archive/html/qemu-devel/2011-11/msg01870.html) actually, I've tested the virtio-blk, and it is working. I applied those patch to QEMU-1.0 and brought the virtio_mmio.c from Linux-3.2-rc back to Linux-

Re: [Qemu-devel] [PATCH 2/3] hw/sd.c: add SD card save/load support

2011-12-28 Thread Avi Kivity
On 12/27/2011 11:30 PM, Peter Maydell wrote: > On 27 December 2011 14:13, Avi Kivity wrote: > > On 12/26/2011 04:58 PM, Peter Maydell wrote: > >> > void sd_enable(SDState *sd, int enable) > >> > { > >> > -sd->enable = enable; > >> > +sd->enable = enable ? true : false; > >> > >> This kin

Re: [Qemu-devel] add debugger command

2011-12-28 Thread Peter Cheung
Good, thanks a lot. I will give it a try tonight. Why I got double-email from the mailing list. I subscribe twice? Thanksfrom Peter > Date: Wed, 28 Dec 2011 09:25:01 +0100 > From: s...@weilnetz.de > To: mcheun...@hotmail.com > CC: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] add debugger c

Re: [Qemu-devel] add debugger command

2011-12-28 Thread Stefan Weil
Am 28.12.2011 07:35, schrieb Peter Cheung: > Dear All > Please take a look http://peter-bochs.googlecode.com , I am an > operating system developer, bochs has a great build in command-line > debugger, but it is not good enough for normal use, so I created > peter-bochs for it. But bochs has a deadl