Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Frank Blaschka
On Tue, Nov 11, 2014 at 04:24:24PM +0100, Alexander Graf wrote: On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander Graf wrote: Am 11.11.2014 um 13:39 schrieb Frank Blaschka blasc...@linux.vnet.ibm.com: On Tue, Nov 11, 2014 at

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Alexander Graf
On 12.11.14 09:49, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 04:24:24PM +0100, Alexander Graf wrote: On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander Graf wrote: Am 11.11.2014 um 13:39 schrieb Frank Blaschka blasc...@linux.vnet.ibm.com:

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Paolo Bonzini
On 12/11/2014 10:08, Alexander Graf wrote: On 12.11.14 09:49, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 04:24:24PM +0100, Alexander Graf wrote: On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander Graf wrote: Am 11.11.2014 um 13:39

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Alexander Graf
On 12.11.14 10:11, Paolo Bonzini wrote: On 12/11/2014 10:08, Alexander Graf wrote: On 12.11.14 09:49, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 04:24:24PM +0100, Alexander Graf wrote: On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Frank Blaschka
On Wed, Nov 12, 2014 at 10:08:19AM +0100, Alexander Graf wrote: On 12.11.14 09:49, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 04:24:24PM +0100, Alexander Graf wrote: On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander Graf wrote:

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Alexander Graf
On 12.11.14 10:19, Frank Blaschka wrote: On Wed, Nov 12, 2014 at 10:08:19AM +0100, Alexander Graf wrote: On 12.11.14 09:49, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 04:24:24PM +0100, Alexander Graf wrote: On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Paolo Bonzini
On 12/11/2014 10:22, Alexander Graf wrote: Absolutely lets make an example for qemu running on BE and LE byte orderconfig space backing pci_default_read_config pcilg (with cpu_to_le) BE0x78563412 0x123456780x78563412 LE0x78563412

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-12 Thread Frank Blaschka
On Wed, Nov 12, 2014 at 10:36:03AM +0100, Paolo Bonzini wrote: On 12/11/2014 10:22, Alexander Graf wrote: Absolutely lets make an example for qemu running on BE and LE byte orderconfig space backing pci_default_read_config pcilg (with cpu_to_le) BE0x78563412

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Frank Blaschka
On Mon, Nov 10, 2014 at 04:56:21PM +0100, Alexander Graf wrote: On 10.11.14 15:20, Frank Blaschka wrote: From: Frank Blaschka frank.blasc...@de.ibm.com This patch implements the s390 pci instructions in qemu. It allows to access and drive pci devices attached to the s390 pci bus.

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Alexander Graf
On 11.11.14 13:10, Frank Blaschka wrote: On Mon, Nov 10, 2014 at 04:56:21PM +0100, Alexander Graf wrote: On 10.11.14 15:20, Frank Blaschka wrote: From: Frank Blaschka frank.blasc...@de.ibm.com This patch implements the s390 pci instructions in qemu. It allows to access and drive pci

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Peter Maydell
On 11 November 2014 12:10, Frank Blaschka blasc...@linux.vnet.ibm.com wrote: On Mon, Nov 10, 2014 at 04:56:21PM +0100, Alexander Graf wrote: +static uint8_t barsize(uint64_t size) +{ +uint64_t mask = 1; +int i; + +if (!size) { +return 0; +} + +for

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Frank Blaschka
On Tue, Nov 11, 2014 at 01:16:04PM +0100, Alexander Graf wrote: On 11.11.14 13:10, Frank Blaschka wrote: On Mon, Nov 10, 2014 at 04:56:21PM +0100, Alexander Graf wrote: On 10.11.14 15:20, Frank Blaschka wrote: From: Frank Blaschka frank.blasc...@de.ibm.com This patch implements

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Frank Blaschka
On Tue, Nov 11, 2014 at 12:17:17PM +, Peter Maydell wrote: On 11 November 2014 12:10, Frank Blaschka blasc...@linux.vnet.ibm.com wrote: On Mon, Nov 10, 2014 at 04:56:21PM +0100, Alexander Graf wrote: +static uint8_t barsize(uint64_t size) +{ +uint64_t mask = 1; +int i;

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Alexander Graf
Am 11.11.2014 um 13:39 schrieb Frank Blaschka blasc...@linux.vnet.ibm.com: On Tue, Nov 11, 2014 at 01:16:04PM +0100, Alexander Graf wrote: On 11.11.14 13:10, Frank Blaschka wrote: On Mon, Nov 10, 2014 at 04:56:21PM +0100, Alexander Graf wrote: On 10.11.14 15:20, Frank Blaschka

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Frank Blaschka
On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander Graf wrote: Am 11.11.2014 um 13:39 schrieb Frank Blaschka blasc...@linux.vnet.ibm.com: On Tue, Nov 11, 2014 at 01:16:04PM +0100, Alexander Graf wrote: On 11.11.14 13:10, Frank Blaschka wrote: On Mon, Nov 10, 2014 at

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-11 Thread Alexander Graf
On 11.11.14 15:08, Frank Blaschka wrote: On Tue, Nov 11, 2014 at 01:51:25PM +0100, Alexander Graf wrote: Am 11.11.2014 um 13:39 schrieb Frank Blaschka blasc...@linux.vnet.ibm.com: On Tue, Nov 11, 2014 at 01:16:04PM +0100, Alexander Graf wrote: On 11.11.14 13:10, Frank Blaschka wrote:

Re: [Qemu-devel] [PATCH 2/3] s390: implement pci instructions

2014-11-10 Thread Alexander Graf
On 10.11.14 15:20, Frank Blaschka wrote: From: Frank Blaschka frank.blasc...@de.ibm.com This patch implements the s390 pci instructions in qemu. It allows to access and drive pci devices attached to the s390 pci bus. Because of platform constrains devices using IO BARs are not supported.