Implement PAPR virtual SCSI interface (ibmvscsi)

This patch implements the infrastructure and hypercalls necessary for
the PAPR specified Virtual SCSI interface.  This is the normal method
for providing (virtual) disks to PAPR partitions.

Signed-off-by: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Ben Herrenschmidt 2011-04-01 15:15:31 +11:00 committed by Alexander Graf
parent b45d63b62f
commit 6e270446d0
6 changed files with 1456 additions and 1 deletions

View file

@ -28,6 +28,7 @@
#include "hw.h"
#include "elf.h"
#include "net.h"
#include "blockdev.h"
#include "hw/boards.h"
#include "hw/ppc.h"
@ -353,6 +354,12 @@ static void ppc_spapr_init(ram_addr_t ram_size,
}
}
for (i = 0; i <= drive_get_max_bus(IF_SCSI); i++) {
spapr_vscsi_create(spapr->vio_bus, 0x2000 + i,
xics_find_qirq(spapr->icp, irq), irq);
irq++;
}
if (kernel_filename) {
uint64_t lowaddr = 0;
@ -411,6 +418,7 @@ static QEMUMachine spapr_machine = {
.max_cpus = MAX_CPUS,
.no_vga = 1,
.no_parallel = 1,
.use_scsi = 1,
};
static void spapr_machine_init(void)