hello, all
I am looking the qemu source code, in the function tb_find_fast ( in
the qemu/cpu-exec.c ),
at line 187, there are some commands :
/* we record a subset of the CPU state. It will
always be the same before a given translated block
is executed. */
where did the qemu re
Hi all developers,
I would like port ARM to MINIX3. But dont know where to start. If you can
give me a spark to start porting of ARM I will be very grateful to you. Can
I use any simulators for porting MINIX to ARM processors. I had also
purchased a book related to ARM7 LPC2000 series. Do I need t
Thanks Malc .. I'll check out the video ... and perhaps ping you off the
list.
On Fri, Aug 13, 2010 at 10:15 AM, malc wrote:
> On Fri, 13 Aug 2010, C K Kashyap wrote:
>
> > Hi,
> > This is not strictly qemu related but I think people who have a good idea
> > about it must be on this list.
> > I
On Fri, 13 Aug 2010, C K Kashyap wrote:
> Hi,
> This is not strictly qemu related but I think people who have a good idea
> about it must be on this list.
> I was wondering if I had an app that requires a fixed quantity of memory -
> sufficiently less than the available physical memory. Would it b
Hi,
This is not strictly qemu related but I think people who have a good idea
about it must be on this list.
I was wondering if I had an app that requires a fixed quantity of memory -
sufficiently less than the available physical memory. Would it benefit from
getting rid of the paging mechanism in
On Thu, Aug 12, 2010 at 9:35 PM, Cliff Wright wrote:
> Its been a while since updating qemu, so on old version I had
> -net nic,model=ne2k_pci -net user -redir tcp:2023::22 -soundhw es1370
> is the missing "-net user" causing you trouble?
Actually, yes, the "-net user" flag makes a difference. Th
On Thu, 12 Aug 2010 19:12:14 +0200
Daniel Carrera wrote:
> qemu -cdrom netbsd-i386cd-5.0.2.iso -hda NetBSD.img -no-acpi -net
> nic,model=pcnet
Its been a while since updating qemu, so on old version I had
-net nic,model=ne2k_pci -net user -redir tcp:2023::22 -soundhw es1370
is the missing "-net
On Thu, Aug 12, 2010 at 6:56 PM, Blue Swirl wrote:
> On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi
>> +static bool write_header(FILE *fp)
>> +{
>> + TraceRecord header = {
>
> This should be 'static const'.
Okay.
>> diff --git a/simpletrace.h b/simpletrace.h
>> new file mode 100644
>> ind
On Thu, Aug 12, 2010 at 5:07 PM, malc wrote:
> On Thu, 12 Aug 2010, Stefan Hajnoczi wrote:
>
>> This patch introduces the trace-events file where trace events can be
>> declared like so:
>>
>> qemu_malloc(size_t size) "size %zu"
>> qemu_free(void *ptr) "ptr %p"
>>
>
> [..snip..]
>
>> + echo
On Thu, Aug 12, 2010 at 2:09 PM, wrote:
> From: Anthony PERARD
>
> This patch adds a new Xen device model target to Qemu, called
> target-xen.
I don't understand why it would be a target, QEMU calls CPU
architectures targets. Isn't it possible to have Xen for Sparc, PPC or
ARM? It should really
On Thu, 12 Aug 2010, Blue Swirl wrote:
> Add a few rules, based loosely on libvirt HACKING.
>
> Blue Swirl (5):
> CODING_STYLE: add preprocessor rules
> CODING_STYLE: add C type rules
> CODING_STYLE: add memory management rules
> CODING_STYLE: add string management rules
> CODING_STYLE:
On Thu, Aug 12, 2010 at 2:10 PM, wrote:
> From: Anthony PERARD
>
> Xen currently uses a different BIOS (hvmloader + rombios) therefore the
> Qemu acpi_piix4 implementation wouldn't work correctly with Xen.
> We plan on fixing this properly but at the moment we are just adding a
> new Xen specifi
On Thu, 12 Aug 2010, Blue Swirl wrote:
> Add preprocessor rules from libvirt HACKING.
>
> Signed-off-by: Blue Swirl
> ---
> CODING_STYLE | 13 +
> 1 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/CODING_STYLE b/CODING_STYLE
> index 92036f3..c4c09ab 100644
> ---
On Thu, Aug 12, 2010 at 2:09 PM, wrote:
> From: Anthony PERARD
>
> This patch introduces a generic function registration mechanism for
> set_irq and map_irq in piix3, so that the two calls can be
> overridden with platform specific functions whenever needed.
> The patch also implements and regis
On Thu, Aug 12, 2010 at 2:09 PM, wrote:
> From: Anthony PERARD
>
> Open and bind event channels; map ioreq and buffered ioreq rings.
>
> Signed-off-by: Anthony PERARD
> Signed-off-by: Stefano Stabellini
> ---
> hw/xen_machine_fv.c | 25
> target-xen/cpu.h | 1 +
> target-xen/
On Thu, Aug 12, 2010 at 2:09 PM, wrote:
> From: Anthony PERARD
>
> Introduce a write config notifier in piix_pci, so that clients can be
> notified every time a pci config write happens.
> The patch also makes use of the notification mechanism in
> xen_machine_fv.
Will the mechanism be used els
On Thu, Aug 12, 2010 at 2:09 PM, wrote:
> From: Anthony PERARD
>
> Introduce a new emulated PCI device, specific to fully virtualized Xen
> guests. The device is necessary for PV on HVM drivers to work.
The code should be converted to qdev and VMState.
>
> Signed-off-by: Anthony PERARD
> Sig
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi
wrote:
> This patch adds a simple tracer which produces binary trace files. To
> try out the simple backend:
>
> $ ./configure --trace-backend=simple
> $ make
>
> After running QEMU you can pretty-print the trace:
>
> $ ./simpletrace.py trace-even
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi
wrote:
> This patch series adds static tracing to QEMU. It can be used to instrument
> QEMU code by means of lightweight logging called trace events.
>
> Prerna and I are now posting the entire patch series with a serious eye
> towards
> checking
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi
wrote:
> From: Prerna Saxena
>
> This patch adds support for dynamically enabling/disabling of trace events.
> This is done by internally maintaining each trace event's state, and
> permitting logging of data from a trace event only if it is in an
Add rules for printf-like functions, based on libvirt HACKING.
Signed-off-by: Blue Swirl
---
CODING_STYLE | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/CODING_STYLE b/CODING_STYLE
index b230a01..f190960 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -180,3 +
Add string management rules, somewhat like libvirt HACKING.
Signed-off-by: Blue Swirl
---
CODING_STYLE | 24
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/CODING_STYLE b/CODING_STYLE
index 085c86f..b230a01 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
Add preprocessor rules from libvirt HACKING.
Signed-off-by: Blue Swirl
---
CODING_STYLE | 13 +
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/CODING_STYLE b/CODING_STYLE
index 92036f3..c4c09ab 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -79,3 +79,16 @@ and cla
Add memory management rules, somewhat like libvirt HACKING.
Signed-off-by: Blue Swirl
---
CODING_STYLE |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/CODING_STYLE b/CODING_STYLE
index 3f10d72..085c86f 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -148,3 +148,11
Add C type rules from libvirt HACKING. Also include
a description of special QEMU scalar types.
Signed-off-by: Blue Swirl
---
CODING_STYLE | 56
1 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/CODING_STYLE b/CODING_STYLE
Add a few rules, based loosely on libvirt HACKING.
Blue Swirl (5):
CODING_STYLE: add preprocessor rules
CODING_STYLE: add C type rules
CODING_STYLE: add memory management rules
CODING_STYLE: add string management rules
CODING_STYLE: add rules for printf-like functions
CODING_STYLE | 1
Hello,
I've spent the last day trying to get NetBSD installed on a QEMU
virtual machine. The problem I'm having is that I can't get online. As
of now, this is the command I'm using:
qemu -cdrom netbsd-i386cd-5.0.2.iso -hda NetBSD.img -no-acpi -net
nic,model=pcnet
With this command I can get a vi
On Thu, 12 Aug 2010, Stefan Hajnoczi wrote:
> This patch introduces the trace-events file where trace events can be
> declared like so:
>
> qemu_malloc(size_t size) "size %zu"
> qemu_free(void *ptr) "ptr %p"
>
[..snip..]
> +echo -n "$name, "
Once again: standard echo doesn't have any
Nothing earth shattering. :)
Paolo Bonzini (3):
move kvm_set_irqfd to kvm-stub.c
remove unused function
make kvm_mutex_*lock static
kvm-all.c |5 +
kvm-stub.c |6 ++
kvm.h |9 -
qemu-kvm.c |4 ++--
qemu-kvm.h |8
5 files changed, 13 insert
Signed-off-by: Paolo Bonzini
---
kvm-all.c |5 +
kvm-stub.c |6 ++
kvm.h |9 -
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index 47f58a6..78983ee 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1298,6 +1298,11 @@ int kvm_set_i
Signed-off-by: Paolo Bonzini
---
qemu-kvm.c |4 ++--
qemu-kvm.h |3 ---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/qemu-kvm.c b/qemu-kvm.c
index 96d458c..f46c394 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -1798,13 +1798,13 @@ int kvm_set_irq(int irq, int level, int *s
Signed-off-by: Paolo Bonzini
---
qemu-kvm.h |5 -
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 6f6c6d8..c08e9b8 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -896,11 +896,6 @@ int handle_tpr_access(void *opaque, CPUState *env,
uint64_t rip,
From: Anthony PERARD
Introduce a mapcache to handle the 64bit address space of the guest
from a 32bit userland process (Qemu).
The mapcache maps chucks of guest memory on demand, unmaps them when
they are not needed anymore.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
From: Anthony PERARD
This patch adds a new Xen device model target to Qemu, called
target-xen.
The new target makes use of the previously introduced xen_machine_fv.
In order to have a fully working Xen device model we still need
functionalities introduced by the following patches.
Signed-off-by:
From: Anthony PERARD
Introduce two functions qemu_shutdown_requested_get and
qemu_reset_requested_get to get the value of shutdown/reset_requested
without reset it.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
sysemu.h |2 ++
vl.c | 10 ++
2 files chan
From: Anthony PERARD
Xen currently uses a different BIOS (hvmloader + rombios) therefore the
Qemu acpi_piix4 implementation wouldn't work correctly with Xen.
We plan on fixing this properly but at the moment we are just adding a
new Xen specific acpi_piix4 implementation.
This patch is optional;
From: Anthony PERARD
Open and bind event channels; map ioreq and buffered ioreq rings.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
hw/xen_machine_fv.c | 25
target-xen/cpu.h |1 +
target-xen/helper.c | 362 ++
On Thu, 12 Aug 2010, Paolo Bonzini wrote:
> On 08/12/2010 10:09 AM, stefano.stabell...@eu.citrix.com wrote:
> > From: Anthony PERARD
> >
> > Update the libxenctrl calls in Qemu to use the new interface, otherwise
> > Qemu wouldn't be able to build against new versions of the library.
>
> What's th
On Thu, 12 Aug 2010, Stefano Stabellini wrote:
> On Thu, 12 Aug 2010, Paolo Bonzini wrote:
> > On 08/12/2010 10:09 AM, stefano.stabell...@eu.citrix.com wrote:
> > > From: Anthony PERARD
> > >
> > > Update the libxenctrl calls in Qemu to use the new interface, otherwise
> > > Qemu wouldn't be able t
From: Anthony PERARD
This patch introduces a generic function registration mechanism for
set_irq and map_irq in piix3, so that the two calls can be
overridden with platform specific functions whenever needed.
The patch also implements and registers the Xen specific version of the
functions.
Sign
From: Anthony PERARD
Update the libxenctrl calls in Qemu to use the new interface, otherwise
Qemu wouldn't be able to build against new versions of the library.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
configure|2 +-
hw/xen_backend.c | 10
On 08/12/2010 10:09 AM, stefano.stabell...@eu.citrix.com wrote:
From: Anthony PERARD
Update the libxenctrl calls in Qemu to use the new interface, otherwise
Qemu wouldn't be able to build against new versions of the library.
What's the earliest version of libxc that will be supported after thi
From: Anthony PERARD
Introduce functions to read and write the state of the VM in xenstore.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
hw/xen_machine_fv.c |9
target-xen/helper.c |7 +++
target-xen/qemu-xen.h |3 +
target-xen/xenstore.c | 128 +++
From: Anthony PERARD
Introduce a 8259 Interrupt Controller for target-xen; every set_irq
call makes a Xen hypercall.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
Makefile.target |2 +-
hw/xen_common.h |3 ++
hw/xen_machine_fv.c |
From: Anthony PERARD
Handle shutdown and reset requests in helper.c.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
target-xen/helper.c | 17 +
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/target-xen/helper.c b/target-xen/helper.c
inde
From: Anthony PERARD
Add an handler to process xenstore events.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
target-xen/xenstore.c | 16
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/target-xen/xenstore.c b/target-xen/xenstore.c
inde
From: Anthony PERARD
Introduce a new emulated PCI device, specific to fully virtualized Xen
guests. The device is necessary for PV on HVM drivers to work.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
Makefile.target |1 +
hw/xen_machine_fv.c |4 +
hw/xen_pl
Hi all,
this is the long awaited patch series to add xen device model support in
qemu; the main author is Anthony Perard.
Developing this series we tried to come up with the cleanest possible
solution from the qemu point of view, limiting the amount of changes to
common code as much as possible. Th
From: Anthony PERARD
Introduce a write config notifier in piix_pci, so that clients can be
notified every time a pci config write happens.
The patch also makes use of the notification mechanism in
xen_machine_fv.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
hw/pc.h
set INITRD_LOAD_ADDR to 0x00d0 instead of 0x0080 as to leave
enough room for vmlinuz + its decompressed counterpart.
It has been mentioned that a better fix might be to peek into the
vmlinux for the real size estimate, but as I'm not sure whether we'd
want to do that peeking here I'm posti
From: Anthony PERARD
Add the Xen FV (Fully Virtualized) machine to Qemu;
this is groundwork to add Xen device model support in Qemu.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
Makefile.target |3 +
hw/xen_machine_fv.c | 156 +++
From: Anthony PERARD
Introduce a xen_dm_init function that opens a new xenstore connection
and the xenctrl interface; call xen_dm_init from xen_machine_fv.
Signed-off-by: Anthony PERARD
Signed-off-by: Stefano Stabellini
---
Makefile.target |1 +
hw/xen_machine_fv.c |8
It is often useful to instrument memory management functions in order to
find leaks or performance problems. This patch adds trace events for
the memory allocation primitives.
Signed-off-by: Stefan Hajnoczi
---
osdep.c | 24 ++--
qemu-malloc.c | 12 ++--
tr
Sometimes it is useful to disable a trace event. Removing the event
from trace-events is not enough since source code will call the
trace_*() function for the event.
This patch makes it easy to build without specific trace events by
marking them disabled in trace-events:
disable multiwrite_cb(vo
From: Prerna Saxena
Signed-off-by: Prerna Saxena
Signed-off-by: Stefan Hajnoczi
---
ioport.c |7 +++
trace-events |4
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/ioport.c b/ioport.c
index 53dd87a..ec3dc65 100644
--- a/ioport.c
+++ b/ioport.c
@@ -26,6 +2
This patch adds the trace-file command:
trace-file [on|off|flush]
Open, close, or flush the trace file. If no argument is given,
the status of the trace file is displayed.
The trace file is turned on by default but is only written out when the
trace buffer becomes full. The flush operati
From: Prerna Saxena
This patch adds support for dynamically enabling/disabling of trace events.
This is done by internally maintaining each trace event's state, and
permitting logging of data from a trace event only if it is in an
'active' state.
Monitor commands added :
1) info trace-events
This patch series adds static tracing to QEMU. It can be used to instrument
QEMU code by means of lightweight logging called trace events.
Prerna and I are now posting the entire patch series with a serious eye towards
checking we meet users' and developers' tracing needs and with the goal of
get
From: Prerna Saxena
Allow users to specify a file for trace-outputs at configuration.
Also, allow trace files to be annotated by so each qemu instance has
unique traces.
The trace file name can be passed as a config option:
--trace-file=/path/to/file
(Default : /tmp/trace )
At runtime, the pid
From: Prerna Saxena
Signed-off-by: Prerna Saxena
Signed-off-by: Stefan Hajnoczi
---
balloon.c|2 ++
trace-events |4
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/balloon.c b/balloon.c
index 8e0b7f1..0021fef 100644
--- a/balloon.c
+++ b/balloon.c
@@ -29,6 +29,
This patch adds trace events for virtqueue operations including
adding/removing buffers, notifying the guest, and receiving a notify
from the guest.
Signed-off-by: Stefan Hajnoczi
---
hw/virtio.c |8
trace-events |8
2 files changed, 16 insertions(+), 0 deletions(-)
d
This patch introduces the trace-events file where trace events can be
declared like so:
qemu_malloc(size_t size) "size %zu"
qemu_free(void *ptr) "ptr %p"
These trace event declarations are processed by a new tool called
tracetool to generate code for the trace events. Trace event
declarations ar
On Thu, Aug 12, 2010 at 16:46, Peter Niessen wrote:
> Hello again,
>
> using the hints on
>
> http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/
>
> (on openSuSE 11.3) I could get my ping times down to 0.8 ms between the
> virtual machines.
Thanks for sharing. I personally great
Public bug reported:
Hello.
I'm studing the x86_64 arch to port colinux to this new architecture.
For who does not know, colinux is a port of linux that runs on windows
NATIVELY. Colinux is
1) a small windows driver
2) a kernel patched
3) some windows user-space application that talk with linux
On 08/12/2010 05:17 AM, Stefan Weil wrote:
Jes has an opinion how thinks should be done, and I have a different one.
If you read the complete history, you can see that I suggested a
compromise (*)
which would give the same result as Jes' suggestions. Only the steps
to reach this result were diffe
This patch adds trace events that make it possible to observe
virtio-blk.
Signed-off-by: Stefan Hajnoczi
---
block.c|8
hw/virtio-blk.c|7 +++
posix-aio-compat.c |2 ++
trace-events | 14 ++
4 files changed, 31 insertions(+), 0 deletio
This patch adds a simple tracer which produces binary trace files. To
try out the simple backend:
$ ./configure --trace-backend=simple
$ make
After running QEMU you can pretty-print the trace:
$ ./simpletrace.py trace-events /tmp/trace.log
The output of simpletrace.py looks like this:
qemu_
Signed-off-by: Stefan Hajnoczi
---
docs/tracing.txt | 149 ++
1 files changed, 149 insertions(+), 0 deletions(-)
create mode 100644 docs/tracing.txt
diff --git a/docs/tracing.txt b/docs/tracing.txt
new file mode 100644
index 000..fe3c6ac
This patch adds LTTng Userspace Tracer (UST) backend support. The UST
system requires no kernel support but libust and liburcu must be
installed.
$ ./configure --trace-backend ust
$ make
Start the UST daemon:
$ ustd &
List available tracepoints and enable some:
$ ustctl --list-markers $(pgrep q
From: Prerna Saxena
This patch adds an optional command line switch '-trace' to specify the
filename to write traces to, when qemu starts.
Eg, If compiled with the 'simple' trace backend,
[t...@system]$ qemu -trace FILENAME IMAGE
Allows the binary traces to be written to FILENAME instead of the o
Check before trying subindexing.
Signed-off-by: Ken CC
---
hw/pci.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index a09fbac..f6f00c6 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -675,6 +675,10 @@ static PCIDevice *do_pci_register_device(PCIDevice
Hello again,
using the hints on
http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/
(on openSuSE 11.3) I could get my ping times down to 0.8 ms between the
virtual machines.
Now my torque batch setup works without problems.
Here's my startup script, I include a second interfac
Signed-off-by: Ken CC
---
hw/pci.c |2 +-
hw/pci.h |1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index a98d6f3..a09fbac 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -44,7 +44,7 @@ struct PCIBus {
pci_hotplug_fn hotplug;
DeviceState *hotplug_
Check before trying subindexing.
Signed-off-by: Ken CC
---
hw/pci.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index a09fbac..f6f00c6 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -675,6 +675,10 @@ static PCIDevice *do_pci_register_device(PCIDevice
Am 12.08.2010 00:12, schrieb Paolo Bonzini:
On 08/11/2010 03:37 PM, Stefan Weil wrote:
With these changes, build succeeds with SDL. For example,
qemu-system-sparc.exe can boot from a Sparc32 CD under Wine.
Yes, that's a possible solution.
You could also take these patches which I sent to qemu
You mean qemu on NetBSD or NetBSD in general - if so, I know that even
Solaris can also execute linux binaries. And to do it, it would require me
to modify the mac os - which I have no clue how to.
Maybe I'll try out what Stefan said - although, on the face of it, it looks
like an endless cycles o
76 matches
Mail list logo