On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> I tested on Qemu 1.0.50. and found the VioSerial driver had problem to
> install on 64-bit Win7 guest.
> During the driver installation, the system hung after the driver being
> installed. After I rebooted the
> guest
On 01/18/2012 03:46 PM, Peter Maydell wrote:
On 16 January 2012 06:48, Evgeny Voevodin wrote:
This doesn't compile on 32 bit hosts:
CCarm-softmmu/exynos4210_mct.o
cc1: warnings being treated as errors
/home/petmay01/linaro/qemu-from-laptop/qemu/hw/exynos4210_mct.c: In
function ‘exynos421
The command dump does not support to dump while vm is running. If the user
resume
the vm, we should auto cancel dumping and set the status to failed.
Signed-off-by: Wen Congyang
---
dump.c | 19 +++
vl.c |5 +++--
2 files changed, 22 insertions(+), 2 deletions(-)
diff -
Let the user to choose whether to block other monitor command while dumping.
Signed-off-by: Wen Congyang
---
dump.c | 12
hmp-commands.hx |8
hmp.c|3 ++-
qapi-schema.json |2 +-
qmp-commands.hx |7 ---
5 files changed, 19 inser
Dump info contains: endian, class and architecture. The next
patch will use these information to create vmcore.
Signed-off-by: Wen Congyang
---
cpu-all.h |3 +++
dump.h | 10 ++
target-i386/arch-dump.c | 34 ++
3 file
The new monitor command dump may take long time to finish. So we need run it
at the background.
Signed-off-by: Wen Congyang
---
dump.c | 155
1 files changed, 136 insertions(+), 19 deletions(-)
diff --git a/dump.c b/dump.c
index
Walk cpu's page table and collect all virtual address and physical address
mapping.
Then, add these mapping into memory mapping list.
Signed-off-by: Wen Congyang
---
Makefile.target |2 +-
cpu-all.h |7 ++
target-i386/arch-dump.c | 254
The core file contains register's value. These APIs write registers to
core file, and them will be called in the following patch.
Signed-off-by: Wen Congyang
---
cpu-all.h |6 +
target-i386/arch-dump.c | 243 +++
2 files changed, 249
At 01/19/2012 11:32 AM, Jun Koi Wrote:
> On Thu, Jan 19, 2012 at 10:50 AM, Wen Congyang wrote:
>> Hi, all
>>
>> 'virsh dump' can not work when host pci device is used by guest. We have
>> discussed this issue here:
>> http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html
>>
>> We h
Add API to allow the user to cancel the current dumping.
Signed-off-by: Wen Congyang
---
dump.c | 13 +
hmp-commands.hx | 14 ++
hmp.c|5 +
hmp.h|1 +
qapi-schema.json | 13 +
qmp-commands.hx | 21 +++
Signed-off-by: Wen Congyang
---
Makefile.target |8 +-
dump.c | 590 ++
dump.h |3 +
hmp-commands.hx | 16 ++
hmp.c|9 +
hmp.h|1 +
monitor.c|3 +
qapi-schema.json |
Add API to allow the user to query dumping status.
Signed-off-by: Wen Congyang
---
dump.c | 32
hmp-commands.hx |2 ++
hmp.c| 17 +
hmp.h|1 +
monitor.c|7 +++
qapi-schema.json | 26
Add API to allow the user to control dumping speed
Signed-off-by: Wen Congyang
---
dump.c | 12
hmp-commands.hx | 15 +++
hmp.c|6 ++
hmp.h|1 +
qapi-schema.json | 15 +++
qmp-commands.hx | 22 ++
Crash needs extra memory mapping to determine phys_base.
Signed-off-by: Wen Congyang
---
cpu-all.h |2 ++
target-i386/arch-dump.c | 43 +++
2 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/cpu-all.h b/cpu-all.h
index efb5
Add API to get all virtual address and physical address mapping.
If there is no virtual address for some physical address, the virtual
address is 0.
Signed-off-by: Wen Congyang
---
memory_mapping.c | 55 ++
memory_mapping.h |1 +
2 files
This API will be used in the following patch.
Signed-off-by: Wen Congyang
---
cpu-common.h |2 ++
exec.c | 16
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/cpu-common.h b/cpu-common.h
index a40c57d..d047137 100644
--- a/cpu-common.h
+++ b/cpu-commo
The memory mapping list stores virtual address and physical address mapping.
The folloing patch will use this information to create PT_LOAD in the vmcore.
Signed-off-by: Wen Congyang
---
Makefile.target |1 +
memory_mapping.c | 130 ++
me
Sync command needs these two APIs to suspend/resume monitor.
Signed-off-by: Wen Congyang
---
monitor.c | 27 +++
monitor.h |2 ++
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/monitor.c b/monitor.c
index 56f3778..ce2bc13 100644
--- a/monitor.c
+++
Hi, all
'virsh dump' can not work when host pci device is used by guest. We have
discussed this issue here:
http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html
We have determined to introduce a new command dump to dump memory. The core
file's format can be elf.
Note:
1. The gue
Vadim,
I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install
on 64-bit Win7 guest.
During the driver installation, the system hung after the driver being
installed. After I rebooted the
guest OS, the Vioserial driver work. The hang system seemed to be found only
during
When you try and compile the latest version with ndk tool it says it can't
find
arm-linux-androideabi-pkg-config
?
How can I get that ?
Can that be disabled in the latest version, so as to not use pkg-config?
Sorry, more of a java man..
Spartacus
On Jan 19, 2012 12:27 AM, "Alex Bradbury" wro
Erik Rull wrote:
Erik Rull wrote:
Anthony Liguori wrote:
On 12/19/2011 03:33 PM, Erik Rull wrote:
Hi all,
coming from qemu 0.14 the usbdevice tablet update rate gets really bad in
qemu-1.0 with the same guest.
What's the specific guest?
Regards,
Anthony Liguori
It's a Windows XP guest.
Erik Rull wrote:
Erik Rull wrote:
Anthony Liguori wrote:
On 12/19/2011 03:33 PM, Erik Rull wrote:
Hi all,
coming from qemu 0.14 the usbdevice tablet update rate gets really bad in
qemu-1.0 with the same guest.
What's the specific guest?
Regards,
Anthony Liguori
It's a Windows XP guest.
Hi developers,
I'm debugging an operating system with QEMU and I have a race condition in
the OS. The problem is that each time I run QEMU I get this error in a
different place, so it makes impossible for gdb to debug it. My plan is to
remove this indeterminism and be able to reproduce the same er
From: Jan Kiszka
Instead of retrieving the IRQ object from the ISA bus, let the creator
of the PIT pick it. pit_init can then connect it to a generic GPIO
output pin.
Signed-off-by: Jan Kiszka
---
hw/alpha_dp264.c |2 +-
hw/i8254.c |4 +---
hw/i8254.h |4 ++--
hw/
From: Jan Kiszka
Instead of providing 4 individual query functions for mode, gate, output
and initial counter state, introduce a service that queries all
information at once. This comes with tiny additional costs for
pcspk_callback but with a much cleaner interface. Also, it will simplify
the imp
From: Jan Kiszka
In legacy mode, the HPET suppresses the RTC interrupt delivery via IRQ
8 but keeps track of the RTC output level and applies it when legacy
mode is turned off again. This value has to be preserved across save/
restore as it cannot be reconstructed otherwise.
Signed-off-by: Jan K
From: Jan Kiszka
When the HPET enters legacy mode, the IRQ output of the PIT is
suppressed and replaced by the HPET timer 0. But the current code to
emulate this was broken in many ways. It reset the PIT state after
re-enabling, it worked against a stale static PIT structure, and it did
not prope
On 18 January 2012 21:33, Peter Maydell wrote:
> There's an Android bug where (at least for some gcc versions) the
> __builtin___clear_cache() function doesn't work. You might like to
> try the test in this Android bug report:
> http://code.google.com/p/android/issues/detail?id=1803
> to see if it
This is a preparatory series to allow the introduction of the KVM
in-kernel PIT. A working and fairly clean version for that is ready. It
is just waiting for the irqchip baseline and this series to be merged.
This series also fixes various bugs in the PIT and HPET code, see
patches for details.
C
From: Jan Kiszka
Avoid changing the IRQ level to high on reset as it may trigger spurious
events. Instead, open-code the effects of pit_load_count(0) in the reset
handler.
Signed-off-by: Jan Kiszka
---
hw/i8254.c |8 +++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/h
From: Jan Kiszka
Move the public interface of the PIT into its own header file and update
all users.
Signed-off-by: Jan Kiszka
---
hw/alpha_dp264.c |1 +
hw/hpet.c |1 +
hw/i8254.c |1 +
hw/i8254.h | 54 ++
From: Jan Kiszka
Convert the PC speaker device to a qdev ISA model. Move the public
interface to a dedicated header file at this chance.
Signed-off-by: Jan Kiszka
---
arch_init.c|1 +
hw/mips_jazz.c |3 ++-
hw/pc.c|3 ++-
hw/pc.h|4
hw/pcspk.c | 5
On 18 January 2012 21:36, Spartacus Rex wrote:
> Is there a version that is known to work..? On arm.
Current git master plus this patch:
http://git.linaro.org/gitweb?p=qemu/qemu-linaro.git;a=commitdiff;h=5462c1db44e6bfb4cd9e8de45aad208910af3a88
should work on a Linux ARM host.
-- PMM
OK.
Is there a version that is known to work..? On arm.
Spartacus
On Jan 18, 2012 10:33 PM, "Peter Maydell" wrote:
> On 18 January 2012 15:41, Spartacus Rex wrote:
> > I am trying to get a version of qemu to compile for Android.
> >
> > Then I would like to boot debian-armel.. or even a minima
On 18 January 2012 15:41, Spartacus Rex wrote:
> I am trying to get a version of qemu to compile for Android.
>
> Then I would like to boot debian-armel.. or even a minimal arm buildroot fs.
>
> I have so far tried compiling with NDK toolchain and codesourcery.
>
> You can build them, but either t
On 01/18/2012 01:26 PM, Peter Maydell wrote:
> On 18 January 2012 19:06, Mark Langsdorf wrote:
>> On 01/18/2012 08:53 AM, Peter Maydell wrote:
>>> On 18 January 2012 14:35, Mark Langsdorf wrote:
I can set the smp_loader code so that I can boot 2 cpus
and verify their existence in /proc/
On 2012-01-18 21:05, Jan Kiszka wrote:
> On 2011-12-18 21:48, Vadim Rozenfeld wrote:
>> ---
>> Makefile.target |2 +
>> target-i386/cpuid.c | 14 ++
>> target-i386/hyperv.c | 65
>> ++
>> target-i386/hyperv.h | 37 +++
On Wed, Jan 18, 2012 at 09:09:22PM +0100, Jan Kiszka wrote:
> > Patchset does not apply, please regenarate
>
> OK, working on it. I think it had some build issue with !CONFIG_KVM anyway.
>
> > (patch 2 is missing actual
> > file move), thanks.
>
> Hmm, possibly requires a fairly recent diff. Are
** Also affects: qemu-kvm (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/917824
Title:
qemu loops/hangs on extending qcow2-diskspace
Status in Q
On 2012-01-18 10:48, Marcelo Tosatti wrote:
> On Mon, Jan 16, 2012 at 04:55:34PM +0100, Jan Kiszka wrote:
>> Changes in v7:
>> - introduce {apic,pic,ioapic}_qdev_register and use
>> {APIC,PIC,IOAPIC}CommonInfo to move more code into the common modules
>> - clean up forgotten fragments of backend/
Yes, it's important that root is not required..
I just want a Normal version of qemu.
I am trying to get it to work in terminal IDE :-)
A slow full gcc-arm tool chain would be nice..
Spartacus
On Jan 18, 2012 8:37 PM, "David Ahern" wrote:
> On 01/18/2012 08:41 AM, Spartacus Rex wrote:
> > Hi
On 2011-12-18 21:48, Vadim Rozenfeld wrote:
> ---
> Makefile.target |2 +
> target-i386/cpuid.c | 14 ++
> target-i386/hyperv.c | 65
> ++
> target-i386/hyperv.h | 37
> 4 files changed, 118 inser
On 18 January 2012 19:43, James Greensky wrote:
> On Tue, Jan 17, 2012 at 7:03 PM, 陳韋任 wrote:
>> I think those numbers (0, 1, and 2) means tb_add_jump 2nd parameter here, so
>> it's intentionally to check jmp_first when n is 2. Since tb->jmp_first is
>> never
>> to be zero, then condition is alw
On Tue, Jan 17, 2012 at 7:22 PM, 陳韋任 wrote:
>> previously returned tb. This is usually 0/1. When running icount, you
>> can also get a 2 value in these least significant digits, indicating
>> that the translation block was restarted due to the
>> icount_decr.u16.low field being exhausted but havin
On Tue, Jan 17, 2012 at 7:03 PM, 陳韋任 wrote:
>> if (!tb->jmp_next[n]) { <--- what if n is 2?
>>
>> This is my question, if n is two, it would actually be checking the
>> jmp_first field immediatedly following the jmp_next array in the tb
>> structure. This function only updates the jmp_first field
On 01/18/2012 08:41 AM, Spartacus Rex wrote:
> Hi there,
>
> I am trying to get a version of qemu to compile for Android.
>
> Then I would like to boot debian-armel.. or even a minimal arm buildroot fs.
Why do you want to run a VM on Android versus using the rootfs natively?
David
On 18 January 2012 19:26, Peter Maydell wrote:
> On 18 January 2012 19:06, Mark Langsdorf wrote:
>> How would multiple polling supposed to work?
>
> You need several separate bits of code, to put each secondary
> core in a different loop polling a different address.
Er, or more sensibly, just on
On 18 January 2012 19:06, Mark Langsdorf wrote:
> On 01/18/2012 08:53 AM, Peter Maydell wrote:
>> On 18 January 2012 14:35, Mark Langsdorf wrote:
>>> I can set the smp_loader code so that I can boot 2 cpus
>>> and verify their existence in /proc/cpuinfo, but I can't
>>> get 3 cpus to boot at all,
On 01/17/2012 03:57 AM, Jamie Lokier wrote:
> You're right, but it looks like it may be removed in the next edition:
>
>https://www.opengroup.org/austin/docs/austin_446.txt
>
>> it was only pthread_atfork() which was removed.
>
> I didn't think pthread_atfork() ever was async-signal-safe.
>
On 01/18/2012 08:53 AM, Peter Maydell wrote:
> On 18 January 2012 14:35, Mark Langsdorf wrote:
>> I can set the smp_loader code so that I can boot 2 cpus
>> and verify their existence in /proc/cpuinfo, but I can't
>> get 3 cpus to boot at all, no matter how I hack the existing
>> arm_boot code.
>
On 18 January 2012 18:04, Paolo Bonzini wrote:
> the following four files in hw/ are using rt_clock directly
>
> omap1.c
> pxa2xx.c
> strongarm.c
> twl92230.c
>
> instead of rtc_clock. This means that they're not completely deterministic
> when using -icount or in the future qtest. A simple
Also drops the leftover 'mon' argument.
This is a preparation for the next commits which will port the
eject and change commands to the QAPI.
Signed-off-by: Luiz Capitulino
---
blockdev.c | 30 ++
1 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/bloc
From: Stefan Weil
Signed-off-by: Stefan Weil
Reviewed-by: Stefan Hajnoczi
Signed-off-by: Luiz Capitulino
---
test-qmp-input-visitor.c |7 ---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/test-qmp-input-visitor.c b/test-qmp-input-visitor.c
index 1f3ab03..926db5c 10064
This pull request contains my QAPI conversions round 4, improvements to
error reporting and a small fix.
The changes (since 8c4ec5c0269bda18bb777a64b2008088d1c632dc) are available
in the following repository:
git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
Anthony Liguori (1):
monitor
Signed-off-by: Anthony Liguori
Signed-off-by: Luiz Capitulino
---
blockdev.c | 54 +++---
blockdev.h |5 ++-
hmp-commands.hx |3 +-
hmp.c| 57 +
hmp.h|1 +
monitor.c
From: Stefan Hajnoczi
We're supposed to keep qerror definitions and table entries in
alphabetical order. In practice this is not checked.
I haven't found a nice way to integrate this into the makefile yet but
we can at least have this script which verifies that qerrors are in
alphabetical order
Drop the qerror_report() call from it and let its callers set the error
themselves. This also allows for dropping the 'ret' variable.
Signed-off-by: Luiz Capitulino
---
console.h |1 -
monitor.c |7 ++-
ui/vnc.c | 14 --
3 files changed, 10 insertions(+), 12 deletions(
On 01/18/2012 12:31 PM, Daniel P. Berrange wrote:
On Wed, Jan 18, 2012 at 11:47:12AM -0600, Anthony Liguori wrote:
On 01/18/2012 11:07 AM, Daniel P. Berrange wrote:
On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote:
On 01/17/2012 01:35 PM, Daniel P. Berrange wrote:
From: "Daniel
Signed-off-by: Anthony Liguori
Signed-off-by: Luiz Capitulino
---
console.h|2 --
hmp-commands.hx |3 +--
hmp.c| 10 ++
hmp.h|1 +
monitor.c| 39 ---
qapi-schema.json | 27 +
Include the name of the encrypted file.
Signed-off-by: Luiz Capitulino
---
monitor.c |3 ++-
qerror.h |2 +-
qmp.c |3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/monitor.c b/monitor.c
index bd4bc4f..f85a9d2 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4682,
On Wed, Jan 18, 2012 at 11:47:12AM -0600, Anthony Liguori wrote:
> On 01/18/2012 11:07 AM, Daniel P. Berrange wrote:
> >On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote:
> >>On 01/17/2012 01:35 PM, Daniel P. Berrange wrote:
> >>>From: "Daniel P. Berrange"
> >>>
> >>>The SDL video dis
From: Anthony Liguori
HMP is now implemented in terms of QMP. The monitor has a bunch of logic to
deal with HMP right now like readline support. Export it from the monitor so
we can consume it in hmp.c.
In short time, hmp.c will take over all of the readline bits.
Signed-off-by: Anthony Liguo
New QMP command to change the VNC password.
Signed-off-by: Anthony Liguori
Signed-off-by: Luiz Capitulino
Signed-off-by: Luiz Capitulino
---
qapi-schema.json | 14 ++
qmp-commands.hx |6 ++
qmp.c|7 +++
3 files changed, 27 insertions(+), 0 deletions(
From: Stefan Hajnoczi
Let's report specific errors so that management tools and users can
identify the problem.
Two new qerrors are needed:
* QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM
* QERR_DEVICE_IS_READ_ONLY for EACCES
Signed-off-by: Stefan Hajnoczi
Signed-off-by: Luiz Capitulino
---
bloc
From: Stefan Hajnoczi
Over time these must have gotten out of order. Put everything back in
alphabetical order.
This is purely a clean up. In practice nothing depends on the order.
Signed-off-by: Stefan Hajnoczi
Signed-off-by: Luiz Capitulino
---
qerror.c | 84 +++
Signed-off-by: Luiz Capitulino
---
blockdev.c | 47 ++-
blockdev.h |2 --
hmp-commands.hx |3 +--
hmp.c| 14 ++
hmp.h|1 +
qapi-schema.json | 29 +
qmp-comman
Hi Peter and Andrzej,
the following four files in hw/ are using rt_clock directly
omap1.c
pxa2xx.c
strongarm.c
twl92230.c
instead of rtc_clock. This means that they're not completely
deterministic when using -icount or in the future qtest. A simple
search-and-replace would be okay I
Signed-off-by: Anthony Liguori
Signed-off-by: Luiz Capitulino
---
blockdev.c | 20 +---
blockdev.h |1 -
hmp-commands.hx |3 +--
hmp.c| 10 ++
hmp.h|1 +
qapi-schema.json | 21 +
qmp-commands.hx |
On 01/18/2012 11:07 AM, Daniel P. Berrange wrote:
On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote:
On 01/17/2012 01:35 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange"
The SDL video display code needs to convert between the SDL keyboard
event keycodes, and QEMU's intern
Signed-off-by: Anthony Liguori
Signed-off-by: Luiz Capitulino
---
hmp-commands.hx |3 +-
hmp.c| 11 ++
hmp.h|1 +
monitor.c| 57 --
qapi-schema.json | 29 +++
qmp-co
On Wed, Jan 18, 2012 at 05:24:50PM +0100, Alexander Graf wrote:
> We call pci_host_config_{read,write}_common() which perform PCI config
> accesses. However they don't do all limit checking the way we expect
> it to.
>
> So let's introduce a small wrapper around them, making them behave the
> way
On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote:
> On 01/17/2012 01:35 PM, Daniel P. Berrange wrote:
> >From: "Daniel P. Berrange"
> >
> >The SDL video display code needs to convert between the SDL keyboard
> >event keycodes, and QEMU's internal keycode set (a variant of the
> >xt c
On 01/17/2012 01:35 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange"
The SDL video display code needs to convert between the SDL keyboard
event keycodes, and QEMU's internal keycode set (a variant of the
xt coding). Currently the SDL code is only able todo this when it is
built for X11,
On 01/18/2012 11:11 AM, Andreas Färber wrote:
Rename SysBus device from 'grackle' to 'grackle-pcihost' to resolve a
name conflict.
Also mark both devices as no_user.
Signed-off-by: Andreas Färber
Cc: Alexander Graf
Cc: Anthony Liguori
Thanks, applied to ppc-next.
Alex
On 01/18/2012 05:20 PM, Andreas Färber wrote:
Signed-off-by: Andreas Färber
Thanks, applied to ppc-next.
Alex
On 18 January 2012 15:50, Mark Langsdorf wrote:
> Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(),
> to allow platforms more control of how secondary CPUs are brought up. The
> new functions default to NULL and aren't called unless they are populated
> so there are no c
We call pci_host_config_{read,write}_common() which perform PCI config
accesses. However they don't do all limit checking the way we expect
it to.
So let's introduce a small wrapper around them, making them behave the
way we would without touching generic code.
This patch is based on a patch by D
Signed-off-by: Andreas Färber
---
MAINTAINERS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index f7fc2ba..87237a6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -301,6 +301,7 @@ L: qemu-...@nongnu.org
S: Maintained
F: hw/ppc_newworld.c
F: hw
On 01/18/2012 10:00 AM, Kevin Wolf wrote:
Am 13.01.2012 19:32, schrieb Anthony Liguori:
This also includes a qtest wrapper script to make it easier to launch qtest
tests directly.
Signed-off-by: Anthony Liguori
+QTestState *qtest_init(const char *extra_args)
+{
+QTestState *s;
+struc
On 01/18/2012 05:00 PM, Kevin Wolf wrote:
> +do {
> +sleep(1);
This is the line that takes the greatest part of the time for make
check-qtest. Can we use some shorter delay if it's required at all?
You can use a client socket, listen before spawning QEMU and accept
afterwards.
Am 13.01.2012 19:32, schrieb Anthony Liguori:
> This also includes a qtest wrapper script to make it easier to launch qtest
> tests directly.
>
> Signed-off-by: Anthony Liguori
> +QTestState *qtest_init(const char *extra_args)
> +{
> +QTestState *s;
> +struct sockaddr_un addr;
> +int
The ability to zero regions of an image file is a useful primitive for
higher-level features such as image streaming or zero write detection.
Image formats may support an optimized metadata representation instead
of writing zeroes into the image file. This allows zero writes to be
potentially fas
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(),
to allow platforms more control of how secondary CPUs are brought up. The
new functions default to NULL and aren't called unless they are populated
so there are no changes to existing platform models.
Signed-off-by: Mark
Hi there,
I am trying to get a version of qemu to compile for Android.
Then I would like to boot debian-armel.. or even a minimal arm buildroot fs.
I have so far tried compiling with NDK toolchain and codesourcery.
You can build them, but either they seg-fault when you run them on Android
or th
The qemu-img.c:is_not_zero() function checks if a buffer contains all
zeroes. This function will come in handy for zero-detection in the
block layer, so clean it up and move it to cutils.c.
Note that the function now returns true if the buffer is all zeroes.
This avoids the double-negatives (i.e.
Copy-on-Read populates the image file with data read from a backing
image. In order to avoid bloating the image file when all zeroes are
read we should scan the buffer and perform an optimized zero write
operation.
Signed-off-by: Stefan Hajnoczi
---
block.c | 14 +++---
1 files change
On 18 January 2012 15:04, Mark Langsdorf wrote:
> On 01/18/2012 08:53 AM, Peter Maydell wrote:
>> Can you try something along those lines?
>
> I think so. I was worried about accessing some of the
> arm_boot static variables but it doesn't look like
> I'll need to do that.
>
> I'll do a quick refa
On 01/18/2012 08:53 AM, Peter Maydell wrote:
> On 18 January 2012 14:35, Mark Langsdorf wrote:
>> Is there a good example of how to write secondary smp boot
>> code other than arm_boot.c? Should I just expect to pull
>> most of arm_boot.c into highbank and adjust from there? I
>> don't want to du
Zero writes are a dedicated interface for writing regions of zeroes into
the image file. If clusters are not yet allocated it is possible to use
an efficient metadata representation which keeps the image file compact
and does not store individual zero bytes.
Implementing this for the QED image fo
Note: This series has been rebased onto the image streaming series which is
likely to get merged first. There are no significant changes to this series
since v2.
This series adds an interface for efficient writes when data contains all
zeros. It also takes advantage of this new interface by exte
Per-request attributes like read/write are currently implemented as bool
fields in the QEDAIOCB struct. This becomes unwiedly as the number of
attributes grows. For example, the qed_aio_setup() function would have
to take multiple bool arguments and at call sites it would be hard to
distinguish t
Extend the qemu-io write command with the -z option to call
bdrv_co_write_zeroes(). Exposing the zero write interface from qemu-io
allows us to write tests that exercise this new block layer interface.
Signed-off-by: Stefan Hajnoczi
---
qemu-io.c | 77 +
On 18 January 2012 14:35, Mark Langsdorf wrote:
> I can set the smp_loader code so that I can boot 2 cpus
> and verify their existence in /proc/cpuinfo, but I can't
> get 3 cpus to boot at all, no matter how I hack the existing
> arm_boot code.
Right, multiple secondary cores requires multiple ad
Add query-block-jobs, which shows the progress of ongoing block device
operations.
Signed-off-by: Stefan Hajnoczi
---
blockdev.c | 33 +
hmp.c| 36
hmp.h|1 +
monitor.c|7 ++
Add block_job_cancel, which stops an active block streaming operation.
When the operation has been cancelled the new BLOCK_JOB_CANCELLED event
is emitted.
Signed-off-by: Stefan Hajnoczi
---
QMP/qmp-events.txt | 24
blockdev.c | 19 ++-
hmp-com
Signed-off-by: Stefan Hajnoczi
---
Please merge into the qtest patches so git-status(1) does not display test
binaries.
.gitignore |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
index 406f75f..46dafea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -
python test-stream.py
Signed-off-by: Stefan Hajnoczi
---
test-stream.py | 208
1 files changed, 208 insertions(+), 0 deletions(-)
create mode 100644 test-stream.py
diff --git a/test-stream.py b/test-stream.py
new file mode 100644
index
From: Marcelo Tosatti
Add bdrv_find_backing_image: given a BlockDriverState pointer, and an id,
traverse the backing image chain to locate the id.
Signed-off-by: Marcelo Tosatti
Signed-off-by: Stefan Hajnoczi
---
block.c | 18 ++
block.h |2 ++
2 files changed, 20 insert
From: Marcelo Tosatti
Add support for streaming data from an intermediate section of the
image chain (see patch and documentation for details).
Signed-off-by: Marcelo Tosatti
Signed-off-by: Stefan Hajnoczi
---
block/stream.c | 91 +--
bloc
1 - 100 of 157 matches
Mail list logo