[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] pseries: Add partial support for PCI
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] pseries: Add partial support for PCI |
Date: |
Mon, 31 Oct 2011 04:55:37 +0100 |
On 31.10.2011, at 04:16, David Gibson wrote:
> This patch adds a PCI bus to the pseries machine. This instantiates
> the qemu generic PCI bus code, advertises a PCI host bridge in the
> guest's device tree and implements the RTAS methods specified by PAPR
> to access PCI config space. It also sets up the memory regions we
> need to provide windows into the PCI memory and IO space, and
> advertises those to the guest.
>
> However, because qemu can't yet emulate an IOMMU, which is mandatory on
> pseries, PCI devices which use DMA (i.e. most of them) will not work with
> this code alone. Still, this is enough to support the virtio_pci device
> (which probably _should_ use emulated PCI DMA, but is specced to use
> direct hypervisor access to guest physical memory instead).
>
> Signed-off-by: Alexey Kardashevskiy <address@hidden>
> Signed-off-by: David Gibson <address@hidden>
Applied with the following patch folded in:
diff --git a/hw/spapr_pci.h b/hw/spapr_pci.h
index 4bb8dfb..213340c 100644
--- a/hw/spapr_pci.h
+++ b/hw/spapr_pci.h
@@ -16,14 +16,16 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#if !defined(__HW_SPAPR_H__)
+#error Please include spapr.h before this file!
+#endif
+
#if !defined(__HW_SPAPR_PCI_H__)
#define __HW_SPAPR_PCI_H__
#include "hw/pci_host.h"
#include "hw/xics.h"
-typedef struct sPAPREnvironment sPAPREnvironment;
-
#define SPAPR_PCI_NUM_LSI 16
typedef struct sPAPRPHBState {
Alex
[Qemu-devel] [PATCH 1/3] ppc: Alter CPU state to mask out TCG unimplemented instructions as appropriate, David Gibson, 2011/10/30
[Qemu-devel] [PATCH 2/3] pseries: Add partial support for PCI, David Gibson, 2011/10/30
- Re: [Qemu-devel] [PATCH 2/3] pseries: Add partial support for PCI,
Alexander Graf <=