Re: [Qemu-devel] [PATCH 14/17] lm32: todo and documentation

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 12:45 AM, Michael Walle mich...@walle.cc wrote: Am Freitag 11 Februar 2011, 21:41:14 schrieb Blue Swirl: +Special instructions + +The translation recognizes one special instruction to halt the cpu: +  and r0, r0, r0 +On real hardware this

Re: [Qemu-devel] qemu user x86 working?

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 12:27 AM, Andi Kleen a...@linux.intel.com wrote: I don't have any problems running a statically linked x86_64 helloworld program in an i386 chroot. Dynamically linked programs try to use wrong libraries, but at least running /lib64/ld-linux-x86-64.so.2 directly works.

[Qemu-devel] MIPS64 system mode emulation

2011-02-12 Thread maheen butt
hiI want to run MIPS64 system mode emulation. for this purpose I need kernel image and initrd. from where I  can get these two things?? same question is for Magnum system mode emulation Regards 

[Qemu-devel] [Bug 717628] [NEW] qemu should ungrab mouse cursor where it is located in guest OS

2011-02-12 Thread VinceLe
Public bug reported: When ungrabbing with CTRL-ALT, the host OS mouse cursor should be warped at the location it was inside the guest OS for better user experience. The same should be done with grabbing, when the window is clicked and the focus grabbed from the host OS, the mouse should be

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-12 Thread Michael Walle
Am Freitag 11 Februar 2011, 22:42:28 schrieb Blue Swirl: +/* Convenient binary macros */ +#define HEX__(n) 0x##n##LU +#define B8__(x) (((x0x000FLU) ? 1 : 0) \ + + ((x0x00F0LU) ? 2 : 0) \ + + ((x0x0F00LU) ? 4 : 0) \ + +

Re: [Qemu-devel] MIPS64 system mode emulation

2011-02-12 Thread Aurelien Jarno
On Sat, Feb 12, 2011 at 01:29:47AM -0800, maheen butt wrote: hiI want to run MIPS64 system mode emulation. for this purpose I need kernel image and initrd. from where I  can get these two things?? same question is for Magnum system mode emulation You don't necessarily needs an initrd, as

[Qemu-devel] [Bug 717628] Re: qemu should ungrab mouse cursor where it is located in guest OS

2011-02-12 Thread Aurelien Jarno
QEMU has no way to know where the mouse pointer is located in the guest. For that you have to use the tablet which uses absolute positions instead, by passing -usbdevice tablet on the command line. ** Changed in: qemu Status: New = Invalid -- You received this bug notification because

[Qemu-devel] RFC: Implement emulation of pSeries logical partitions

2011-02-12 Thread David Gibson
This patch series adds a pseries machine to qemu, allowing it to emulate IBM pSeries logical partitions. Along the way we add a bunch of support for more modern ppc CPUs than are currently supported. It also makes some significant cleanups to the translation code for hash page table based ppc

[Qemu-devel] [PATCH 01/15] Add TAGS and *~ to .gitignore

2011-02-12 Thread David Gibson
Add the etags generated output file and editor backup files to .gitignore. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 26703e1..1d79680 100644 --- a/.gitignore +++

[Qemu-devel] [PATCH 05/15] Implement PowerPC slbmfee and slbmfev instructions

2011-02-12 Thread David Gibson
From: David Gibson d...@au1.ibm.com For a 64-bit PowerPC target, qemu correctly implements translation through the segment lookaside buffer. Likewise it supports the slbmte instruction which is used to load entries into the SLB. However, it does not emulate the slbmfee and slbmfev instructions

[Qemu-devel] [PATCH 08/15] Clean up slb_lookup() function

2011-02-12 Thread David Gibson
The slb_lookup() function, used in the ppc translation path returns a number of slb entry fields in reference parameters. However, only one of the two callers of slb_lookup() actually wants this information. This patch, therefore, makes slb_lookup() return a simple pointer to the located SLB

[Qemu-devel] [PATCH 03/15] Allow qemu_devtree_setprop() to take arbitrary values

2011-02-12 Thread David Gibson
From: David Gibson d...@au1.ibm.com Currently qemu_devtree_setprop() expects the new property value to be given as a uint32_t *. While property values consisting of u32s are common, in general they can have any bytestring value. Therefore, this patch alters the function to take a void *

[Qemu-devel] [PATCH 07/15] Correct ppc popcntb logic, implement popcntw and popcntd

2011-02-12 Thread David Gibson
From: David Gibson d...@au1.ibm.com qemu already includes support for the popcntb instruction introduced in POWER5 (although it doesn't actually allow you to choose POWER5). However, the logic is slightly incorrect: it will generate results truncated to 32-bits when the CPU is in 32-bit mode.

[Qemu-devel] [PATCH 04/15] Add a hook to allow hypercalls to be emulated on PowerPC

2011-02-12 Thread David Gibson
From: David Gibson d...@au1.ibm.com PowerPC and POWER chips since the POWER4 and 970 have a special hypervisor mode, and a corresponding form of the system call instruction which traps to the hypervisor. qemu currently has stub implementations of hypervisor mode. That is, the outline is there

[Qemu-devel] [PATCH 02/15] Clean up PowerPC SLB handling code

2011-02-12 Thread David Gibson
Currently the SLB information when emulating a PowerPC 970 is storeed in a structure with the unhelpfully named fields 'tmp' and 'tmp64'. While the layout in these fields does match the description of the SLB in the architecture document, it is not convenient either for looking up the SLB, or for

[Qemu-devel] [PATCH 06/15] Implement missing parts of the logic for the POWER PURR

2011-02-12 Thread David Gibson
From: David Gibson d...@au1.ibm.com The PURR (Processor Utilization Resource Register) is a register found on recent POWER CPUs. The guts of implementing it at least enough to get by are already present in qemu, however some of the helper functions needed to actually wire it up are missing.

[Qemu-devel] [PATCH 10/15] Use hash more consistently in ppc mmu code

2011-02-12 Thread David Gibson
Currently, get_segment() has a variable called hash. However it doesn't (quite) get the hash value for the ppc hashed page table. Instead it gets the hash shifted - effectively the offset of the hash bucket within the hash page table. As well, as being different to the normal use of plain hash

[Qemu-devel] [PATCH 11/15] Better factor the ppc hash translation path

2011-02-12 Thread David Gibson
Currently the path handling hash page table translation in get_segment() has a mix of common and 32 or 64 bit specific code. However the division is not done terribly well which results in a lot of messy code flipping between common and divided paths. This patch improves the organization,

[Qemu-devel] [PATCH 09/15] Parse SDR1 on mtspr instead of at translate time

2011-02-12 Thread David Gibson
On ppc machines with hash table MMUs, the special purpose register SDR1 contains both the base address of the encoded size (hashed) page tables. At present, we interpret the SDR1 value within the address translation path. But because the encodings of the size for 32-bit and 64-bit are different

[Qemu-devel] [PATCH 12/15] Support 1T segments on ppc

2011-02-12 Thread David Gibson
Traditionally, the segments used for the two-stage translation used on powerpc MMUs were 256MB in size. This was the only option on all hash page table based 32-bit powerpc cpus, and on the earlier 64-bit hash page table based cpus. However, newer 64-bit cpus also permit 1TB segments This patch

[Qemu-devel] [PATCH 13/15] Add POWER7 support for ppc

2011-02-12 Thread David Gibson
This adds emulation support for the recent POWER7 cpu to qemu. It's far from perfect - it's missing a number of POWER7 features so far, including any support for VSX or decimal floating point instructions. However, it's close enough to boot a kernel with the POWER7 PVR. Signed-off-by: David

[Qemu-devel] [PATCH 14/15] Start implementing pSeries logical partition machine

2011-02-12 Thread David Gibson
This patch adds a pseries machine to qemu. This aims to emulate a logical partition on an IBM pSeries machine, compliant to the PowerPC Architecture Platform Requirements (PAPR) document. This initial version is quite limited, it implements a basic machine and PAPR hypercall emulation. So far

[Qemu-devel] Re: [PATCH 03/15] Allow qemu_devtree_setprop() to take arbitrary values

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: From: David Gibson d...@au1.ibm.com Currently qemu_devtree_setprop() expects the new property value to be given as a uint32_t *. While property values consisting of u32s are common, in general they can have any bytestring value. Therefore,

[Qemu-devel] Re: [PATCH 04/15] Add a hook to allow hypercalls to be emulated on PowerPC

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: From: David Gibson d...@au1.ibm.com PowerPC and POWER chips since the POWER4 and 970 have a special hypervisor mode, and a corresponding form of the system call instruction which traps to the hypervisor. qemu currently has stub

[Qemu-devel] [PATCH 15/15] Implement the bus structure for PAPR virtual IO

2011-02-12 Thread David Gibson
This extends the pseries (PAPR) machine to include a virtual IO bus supporting the PAPR defined hypercall based virtual IO mechanisms. So far only one VIO device is provided, the vty / vterm, providing a full console (polled only, for now). Signed-off-by: David Gibson d...@au1.ibm.com ---

[Qemu-devel] Re: [PATCH 02/15] Clean up PowerPC SLB handling code

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: Currently the SLB information when emulating a PowerPC 970 is storeed in a structure with the unhelpfully named fields 'tmp' and 'tmp64'. While the layout in these fields does match the description of the SLB in the architecture document, it is

[Qemu-devel] Re: [PATCH 06/15] Implement missing parts of the logic for the POWER PURR

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: From: David Gibson d...@au1.ibm.com The PURR (Processor Utilization Resource Register) is a register found on recent POWER CPUs. The guts of implementing it at least enough to get by are already present in qemu, however some of the helper

[Qemu-devel] Re: [PATCH 07/15] Correct ppc popcntb logic, implement popcntw and popcntd

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: From: David Gibson d...@au1.ibm.com qemu already includes support for the popcntb instruction introduced in POWER5 (although it doesn't actually allow you to choose POWER5). However, the logic is slightly incorrect: it will generate results

[Qemu-devel] Re: [PATCH 08/15] Clean up slb_lookup() function

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: The slb_lookup() function, used in the ppc translation path returns a number of slb entry fields in reference parameters. However, only one of the two callers of slb_lookup() actually wants this information. This patch, therefore, makes

[Qemu-devel] Re: [PATCH 05/15] Implement PowerPC slbmfee and slbmfev instructions

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: From: David Gibson d...@au1.ibm.com For a 64-bit PowerPC target, qemu correctly implements translation through the segment lookaside buffer. Likewise it supports the slbmte instruction which is used to load entries into the SLB. However, it

[Qemu-devel] Re: [PATCH 09/15] Parse SDR1 on mtspr instead of at translate time

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: On ppc machines with hash table MMUs, the special purpose register SDR1 contains both the base address of the encoded size (hashed) page tables. At present, we interpret the SDR1 value within the address translation path. But because the

[Qemu-devel] Re: [PATCH 10/15] Use hash more consistently in ppc mmu code

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: Currently, get_segment() has a variable called hash. However it doesn't (quite) get the hash value for the ppc hashed page table. Instead it gets the hash shifted - effectively the offset of the hash bucket within the hash page table. As

[Qemu-devel] Re: [PATCH 11/15] Better factor the ppc hash translation path

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: Currently the path handling hash page table translation in get_segment() has a mix of common and 32 or 64 bit specific code. However the division is not done terribly well which results in a lot of messy code flipping between common and divided

[Qemu-devel] Re: [PATCH 12/15] Support 1T segments on ppc

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: Traditionally, the segments used for the two-stage translation used on powerpc MMUs were 256MB in size. This was the only option on all hash page table based 32-bit powerpc cpus, and on the earlier 64-bit hash page table based cpus. However,

[Qemu-devel] Re: [PATCH 13/15] Add POWER7 support for ppc

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: This adds emulation support for the recent POWER7 cpu to qemu. It's far from perfect - it's missing a number of POWER7 features so far, including any support for VSX or decimal floating point instructions. However, it's close enough to boot a

[Qemu-devel] Re: [PATCH 14/15] Start implementing pSeries logical partition machine

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: This patch adds a pseries machine to qemu. This aims to emulate a logical partition on an IBM pSeries machine, compliant to the PowerPC Architecture Platform Requirements (PAPR) document. This initial version is quite limited, it implements a

Re: [Qemu-devel] RFC: Implement emulation of pSeries logical partitions

2011-02-12 Thread Laurent Vivier
Hi, Do you plan to boot AIX in one of these partitions ? Regards, Laurent David Gibson da...@gibson.dropbear.id.au a écrit : This patch series adds a pseries machine to qemu, allowing it to emulate IBM pSeries logical partitions. Along the way we add a bunch of support for more modern ppc

[Qemu-devel] Re: [PATCH 14/15] Start implementing pSeries logical partition machine

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 6:23 PM, Alexander Graf ag...@suse.de wrote: On 12.02.2011, at 15:54, David Gibson wrote: This patch adds a pseries machine to qemu.  This aims to emulate a logical partition on an IBM pSeries machine, compliant to the PowerPC Architecture Platform Requirements (PAPR)

[Qemu-devel] Re: [PATCH 15/15] Implement the bus structure for PAPR virtual IO

2011-02-12 Thread Alexander Graf
On 12.02.2011, at 15:54, David Gibson wrote: This extends the pseries (PAPR) machine to include a virtual IO bus supporting the PAPR defined hypercall based virtual IO mechanisms. So far only one VIO device is provided, the vty / vterm, providing a full console (polled only, for now).

Re: [Qemu-devel] [PATCH 04/10] x86,MIPS: make vmware_vga optional

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Allow failure with vmware_vga device creation and use standard VGA instead. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/mips_malta.c |6 +- hw/pc.c | 11 --- hw/vmware_vga.h | 11 +-- 3 files changed,

Re: [Qemu-devel] [PATCH 05/10] vmport: convert to qdev

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pc.h |1 - hw/pc_piix.c |2 -- hw/vmport.c | 24 +--- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index a048768..603a2a3

[Qemu-devel] Re: [PATCH 15/15] Implement the bus structure for PAPR virtual IO

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 6:47 PM, Alexander Graf ag...@suse.de wrote: On 12.02.2011, at 15:54, David Gibson wrote: This extends the pseries (PAPR) machine to include a virtual IO bus supporting the PAPR defined hypercall based virtual IO mechanisms. So far only one VIO device is provided,

[Qemu-devel] [Bug 543478] The education it�s prestigious !

2011-02-12 Thread Roberto Scotti
You have a choice today! We are an experienced company, who will give you a big chance! How many days and hours should you spend at the university? Yes�it is too long! We offer you the way much better! 100% verified Degree: Bachelors, Masters and Doctorate (PHD). Our professionals will answer to

Re: [Qemu-devel] [PATCH 04/10] x86,MIPS: make vmware_vga optional

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 6:48 PM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: Allow failure with vmware_vga device creation and use standard VGA instead. Signed-off-by: Blue Swirl blauwir...@gmail.com ---  hw/mips_malta.c |    6 +-  hw/pc.c        

Re: [Qemu-devel] [PATCH 03/10] pci: add creation functions that may fail

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pci.c | 20 hw/pci.h |4 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index d5bbba9..5e6e216 100644 --- a/hw/pci.c +++

Re: [Qemu-devel] [PATCH 02/10] qdev: add creation function that may fail

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/qdev.c | 14 +- hw/qdev.h |1 + 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index c7fec44..1aa1ea0 100644 --- a/hw/qdev.c +++

Re: [Qemu-devel] [PATCH 06/10] vmmouse: convert to qdev

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Convert to qdev, also add a proper reset function. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pc.c |5 +++-- hw/pc.h |3 --- hw/vmmouse.c | 37 + 3 files changed, 32 insertions(+),

Re: [Qemu-devel] [PATCH 07/10] isa: add creation function that may fail

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/isa-bus.c | 12 hw/isa.h |1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 0cb1afb..6f349a5 100644 --- a/hw/isa-bus.c

Re: [Qemu-devel] [PATCH 05/10] vmport: convert to qdev

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 6:57 PM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com ---  hw/pc.h      |    1 -  hw/pc_piix.c |    2 --  hw/vmport.c  |   24 +---  3 files changed, 21

Re: [Qemu-devel] [PATCH 09/10] sysbus: add creation function that may fail

2011-02-12 Thread Markus Armbruster
Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/sysbus.c | 31 +++ hw/sysbus.h |9 + 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/hw/sysbus.c b/hw/sysbus.c index 1583bd8..8980f34

Re: [Qemu-devel] [PATCH 06/10] vmmouse: convert to qdev

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 7:03 PM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: Convert to qdev, also add a proper reset function. Signed-off-by: Blue Swirl blauwir...@gmail.com ---  hw/pc.c      |    5 +++--  hw/pc.h      |    3 ---  hw/vmmouse.c |  

Re: [Qemu-devel] [PATCH 09/10] sysbus: add creation function that may fail

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 7:15 PM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com ---  hw/sysbus.c |   31 +++  hw/sysbus.h |    9 +  2 files changed, 40 insertions(+), 0

Re: [Qemu-devel] [PATCH 02/10] qdev: add creation function that may fail

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 7:10 PM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: Signed-off-by: Blue Swirl blauwir...@gmail.com ---  hw/qdev.c |   14 +-  hw/qdev.h |    1 +  2 files changed, 14 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] Re: [PATCH 1/2] vl: initialize all displaystates

2011-02-12 Thread Dmitry Eremin-Solenikov
On 2/4/11, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Init not only first displaystate, but all. Otherwise machines with multiple display devices (e.g. tosa, as it exists now) will just segfault on ds switch. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com What about

[Qemu-devel] Re: [PATCH 14/15] Start implementing pSeries logical partition machine

2011-02-12 Thread Benjamin Herrenschmidt
On Sat, 2011-02-12 at 18:40 +0200, Blue Swirl wrote: sPAPREnvironment has a certain aroma reminding of aHungarian nNotation, but otherwise the bouquet is entirely passable. It's just the smell, like a good french cheese :-) sPAPR as server Power Architecture® Platform Requirements, which is

[Qemu-devel] Re: [PATCH 15/15] Implement the bus structure for PAPR virtual IO

2011-02-12 Thread Benjamin Herrenschmidt
On Sat, 2011-02-12 at 18:59 +0200, Blue Swirl wrote: Actually I don't quite understand the need for vty layer, why not use the chardev here directly? I'm not sure what you mean here... Basically, the interface presented to guests is sPAPR compliant, so virtual devices come with a bunch of

Re: [Qemu-devel] [PATCH] Remove a detached device from qemu_device_opts.

2011-02-12 Thread William Dauchy
Hi, On Mon, Feb 7, 2011 at 3:40 PM, William Dauchy wdau...@gmail.com wrote: On Thu, 2011-01-27 at 18:00 +0900, Ken'ichi Ohmichi wrote: Hi, When I tried to attach the interface after detaching the same interface, the virsh command output the following and it failed:   # virsh

[Qemu-devel] Problem auf Ihrer letzten Rechnung...

2011-02-12 Thread Swisscom
Hallo, Diese E-Mail wurde abgeschickt, um Ihnen mitzuteilen, dass wir nicht verarbeiten Ihre bisherigen Bezahlung der Rechnung. Dies könnte dem einen oder anderen der folgenden Gründe: 1. Eine kürzlich durchgeführte Änderungen Ihrer persönlichen Information. (Beispiel:

[Qemu-devel] [PATCH 00/10] make more devices optional

2011-02-12 Thread Blue Swirl
Make some more devices optional. Blue Swirl (10): parallel: refactor device creation parallel: make optional ne2000_isa: refactor device creation ne2000_isa: make optional serial: refactor device creation serial: make optional fdc: move floppy geometry guessing to block.c fdc: use

[Qemu-devel] [PATCH 01/10] parallel: refactor device creation

2011-02-12 Thread Blue Swirl
Turn parallel_init into an inline function. Don't expose ParallelState. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/parallel.c | 21 + hw/pc.h | 19 +++ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/hw/parallel.c

[Qemu-devel] [PATCH 05/10] serial: refactor device creation

2011-02-12 Thread Blue Swirl
Turn serial_init into an inline function. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pc.h | 14 +- hw/serial.c | 12 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index 50d9943..09f63f0 100644 --- a/hw/pc.h +++

[Qemu-devel] [PATCH 03/10] ne2000_isa: refactor device creation

2011-02-12 Thread Blue Swirl
Turn isa_ne2000_init into an inline function. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/ne2000-isa.c | 13 - hw/pc.h | 12 +++- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c index 3ff0d89..e41dbba

[Qemu-devel] [PATCH 07/10] fdc: move floppy geometry guessing to block.c

2011-02-12 Thread Blue Swirl
Other geometry guessing functions already reside in block.c. Remove some unused or debugging only fields. Signed-off-by: Blue Swirl blauwir...@gmail.com --- block.c | 103 block.h | 10 + hw/fdc.c | 114

[Qemu-devel] [PATCH 02/10] parallel: make optional

2011-02-12 Thread Blue Swirl
Ignore failure with parallel device creation. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pc.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index 443ba34..f823b7d 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -24,7 +24,10 @@ static inline bool

[Qemu-devel] [PATCH 09/10] fdc: refactor device creation

2011-02-12 Thread Blue Swirl
Turn fdc_init_isa into an inline function. Get floppy geometry directly from the drives. Don't expose FDCtrl. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/fdc.c | 37 ++--- hw/fdc.h | 24 +--- hw/pc.c | 31

[Qemu-devel] [PATCH 06/10] serial: make optional

2011-02-12 Thread Blue Swirl
Ignore failure with serial device creation. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pc.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index 09f63f0..89b43ea 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -21,7 +21,10 @@ static inline bool

[Qemu-devel] [PATCH 10/10] fdc: make optional

2011-02-12 Thread Blue Swirl
Ignore failure with fdc device creation. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/fdc.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/fdc.h b/hw/fdc.h index 3b2fb3b..09f73c6 100644 --- a/hw/fdc.h +++ b/hw/fdc.h @@ -11,7 +11,10 @@ static inline void

[Qemu-devel] [PATCH 04/10] ne2000_isa: make optional

2011-02-12 Thread Blue Swirl
Ignore failure with ne2000_isa device creation. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/pc.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index abdf307..50d9943 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -5,6 +5,7 @@ #include

[Qemu-devel] Re: [PATCH 15/15] Implement the bus structure for PAPR virtual IO

2011-02-12 Thread Blue Swirl
On Sat, Feb 12, 2011 at 11:00 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Sat, 2011-02-12 at 18:59 +0200, Blue Swirl wrote: Actually I don't quite understand the need for vty layer, why not use the chardev here directly? I'm not sure what you mean here... Maybe it would be

[Qemu-devel] Re: [PATCH 15/15] Implement the bus structure for PAPR virtual IO

2011-02-12 Thread Benjamin Herrenschmidt
On Sun, 2011-02-13 at 00:52 +0200, Blue Swirl wrote: On Sat, Feb 12, 2011 at 11:00 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Sat, 2011-02-12 at 18:59 +0200, Blue Swirl wrote: Actually I don't quite understand the need for vty layer, why not use the chardev here

[Qemu-devel] [Bug 717929] [NEW] Serial communication between VMs problematic

2011-02-12 Thread jiribb
Public bug reported: Hello, I want to setup serial communication between VM hosts but I have found it quite difficult...: ...because when trying unix sockets: - host A has serial device as unix socket (bind) - host B has serial device as client of unix socket - host A is down thus not unix

[Qemu-devel] [PATCH 2/2] linux-user: correct core dump format

2011-02-12 Thread Laurent Vivier
This patch allows to really use the core dumped by qemu with guest architecture tools. - it adds a missing bswap_phdr() for the program headers of memory regions. objdump -x sample: BEFORE: 0x100 off0x0020 vaddr 0x0400 paddr 0x align 2**21 filesz 0x

[Qemu-devel] [PATCH 1/2] linux-user: Define target alignment size

2011-02-12 Thread Laurent Vivier
Datatype alignment can be found using following application: int main(void) { printf(alignof(short) %ld\n, __alignof__(short)); printf(alignof(int) %ld\n, __alignof__(int)); printf(alignof(long) %ld\n, __alignof__(long)); printf(alignof(long long) %ld\n,

[Qemu-devel] Binary Translation hooking - reading registers

2011-02-12 Thread felix.matenaar@rwth-aachen
Hello everyone, i am working on a project adding instrumentation into qemu. My approach is to use gen_helper stuff do hook specific opcodes like call or ret to gain information about running processes in the virtual machine. Today I noticed that the CPUState* env is not in all cases up-to-date

Re: [Qemu-devel] Binary Translation hooking - reading registers

2011-02-12 Thread Mulyadi Santosa
Hi On Sun, Feb 13, 2011 at 10:48, felix.matenaar@rwth-aachen felix.maten...@rwth-aachen.de wrote: To achieve my goal, it is necessary being able reading actual register configuration like eax when a ret hook is called to get a function return value. So my question is how I can do this. Are

[Qemu-devel] [PATCH] PS/2 keyboard Scancode Set 3 support

2011-02-12 Thread Roy Tam
The following patch adds PS/2 keyboard Scancode Set 3 support. Sign-off-by: Roy Tam roy...@gmail.com -- diff --git a/hw/ps2.c b/hw/ps2.c index 762bb00..4b73967 100644 --- a/hw/ps2.c +++ b/hw/ps2.c @@ -143,12 +143,87 @@ static void ps2_put_keycode(void *opaque, int keycode) { PS2KbdState *s