diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-05-06 15:58:04 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-05-08 15:28:49 +0200 |
commit | 0ee20e665840d8a887c145b368ee121cb86a028e (patch) | |
tree | 6908ec6f1357c52a71c71896699e7e03ce8d0496 /hw/ide/isa.c | |
parent | 15d23fb96656b1ae31bf4305b2108230c29298c6 (diff) |
ahci: Don't allow creating slave drives
An IDE bus provided by AHCI can only take a single IDE drive. If you add
a drive as slave, qemu used to accept the command line but the device
wouldn't be actually usable. Catch the situation instead and error out.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/isa.c')
-rw-r--r-- | hw/ide/isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 5e7422fc2b..369a7fa58a 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -69,7 +69,7 @@ static int isa_ide_initfn(ISADevice *dev) { ISAIDEState *s = ISA_IDE(dev); - ide_bus_new(&s->bus, DEVICE(dev), 0); + ide_bus_new(&s->bus, DEVICE(dev), 0, 2); ide_init_ioport(&s->bus, dev, s->iobase, s->iobase2); isa_init_irq(dev, &s->irq, s->isairq); ide_init2(&s->bus, s->irq); |