Changes to -drive without if= and with if=scsi
Subsystems (2)
The following changes since commit b856256179f14c33a513d0b9cc3e4be355b95f43:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20170221-1' into staging (2017-02-21 09:35:15 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/armbru.git tags/pull-block-2017-02-21
for you to fetch changes up to f778a82f0c179634892ea716970d4d35264dc841:
hw/i386: Deprecate -drive if=scsi with PC machine types (2017-02-21 13:17:45 +0100)
----------------------------------------------------------------
Changes to -drive without if= and with if=scsi
----------------------------------------------------------------
Markus Armbruster (11):
hw: Default -drive to if=ide explicitly where it works hw/arm/cubieboard hw/arm/xlnx-ep108: Fix units_per_default_bus
hw: Default -drive to if=none instead of ide when ide cannot work
hw: Default -drive to if=none instead of scsi when scsi cannot work hw/arm/highbank: Default -drive to if=ide instead of if=scsi
blockdev: Improve message for orphaned -drive
blockdev: Make orphaned -drive fatal
hw: Drop superfluous special checks for orphaned -drive hw/scsi: Concentrate -drive if=scsi auto-create in one place
hw: Deprecate -drive if=scsi with non-onboard HBAs hw/i386: Deprecate -drive if=scsi with PC machine types
blockdev.c | 23 ++++++++++-------- hw/alpha/dp264.c | 1 + hw/arm/cubieboard.c | 4 ++++ hw/arm/highbank.c | 8 +++++-- hw/arm/realview.c | 3 +-- hw/arm/spitz.c | 3 +++ hw/arm/tosa.c | 1 + hw/arm/versatilepb.c | 2 +- hw/arm/vexpress.c | 1 - hw/arm/xilinx_zynq.c | 1 - hw/arm/xlnx-ep108.c | 6 +++++ hw/i386/pc.c | 7 ++++++ hw/ide/core.c | 17 ------------- hw/mips/mips_fulong2e.c | 1 + hw/mips/mips_jazz.c | 4 ---- hw/mips/mips_malta.c | 1 + hw/mips/mips_r4k.c | 1 + hw/ppc/mac_newworld.c | 1 + hw/ppc/mac_oldworld.c | 1 + hw/ppc/prep.c | 1 + hw/scsi/esp-pci.c | 3 --- hw/scsi/esp.c | 6 ----- hw/scsi/lsi53c895a.c | 10 +++++--- hw/scsi/megasas.c | 4 ---- hw/scsi/mptsas.c | 4 ---- hw/scsi/scsi-bus.c | 56 +++++++++++++++++++++++++++++++++++++------ hw/scsi/spapr_vscsi.c | 5 ++-- hw/scsi/virtio-scsi.c | 8 ------- hw/sh4/r2d.c | 1 + hw/sparc/sun4m.c | 5 ---- hw/sparc64/sun4u.c | 2 ++ include/hw/pci/pci.h | 2 ++ include/hw/scsi/scsi.h | 3 ++- include/sysemu/blockdev.h | 11 ++++----- qemu-options.hx | 5 ---- tests/qemu-iotests/051.pc.out | 12 ++++++---- vl.c | 10 ++++++++ 37 files changed, 137 insertions(+), 97 deletions(-)
[Qemu-devel] [PULL 03/11] hw: Default -drive to if=none instead of ide when ide cannot work
Block backends defined with -drive if=ide are meant to be picked up by machine initialization code: a suitable frontend gets created and wired up automatically.
if=ide drives not picked up that way can still be used with -device as if they had if=none, but that's unclean and best avoided. Unused ones produce an "Orphaned drive without device" warning.
-drive parameter "if" is optional, and the default depends on the machine type. If a machine type doesn't specify a default, the default is "ide".
Many machine types implicitly default to if=ide that way, even though they don't actually have an IDE controller. This makes no sense.
Change the implicit default to if=none. Affected machines:
* all targets: none
* aarch64/arm: akita ast2500 canon cheetah collie connex imx25 integratorcp kzm lm3s6965evb lm3s811evb mainstone musicpal n800 n810 netduino2 nuri palmetto realview romulus sabrelite smdkc210 sx1 sx1 verdex z2
* cris: axis-dev88
* i386/x86_64: xenpv
* lm32: lm32-evr lm32-uclinux milkymist
* m68k: an5206 dummy mcf5208evb
* microblaze/microblazeel: petalogix-ml605 petalogix-s3adsp1800
* mips/mips64/mips64el/mipsel: mipssim
* moxie: moxiesim
* or32: or32-sim
* ppc/ppc64/ppcemb: bamboo ref405ep taihu virtex-ml507
* ppc/ppc64: mpc8544ds ppce500
* sh4/sh4eb: shix
* sparc: leon3_generic
* sparc64: niagara
* tricore: tricore_testboard
* unicore32: puv3
* xtensa/xtensaeb: kc705 lx200 lx60 ml605 sim
None of these machines have an IDE controller, let alone code to honor if=ide.
Message-Id: <[email protected]>
--- include/sysemu/blockdev.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
include/sysemu/blockdev.h +4 -5
@@ -19,12 +19,11 @@ void blockdev_auto_del(BlockBackend *blk);typedef enum {IF_DEFAULT =-1 ,/* for use with drive_add() only */ /* -* IF_IDE must be zero, because we want MachineClass member -* block_default_type to default-initialize to IF_IDE +* IF_NONE must be zero, because we want MachineClass member +* block_default_type to default-initialize to IF_NONE */ -IF_IDE =0 , -IF_NONE , -IF_SCSI ,IF_FLOPPY ,IF_PFLASH ,IF_MTD ,IF_SD ,IF_VIRTIO ,IF_XEN , +IF_NONE =0 , +IF_IDE ,IF_SCSI ,IF_FLOPPY ,IF_PFLASH ,IF_MTD ,IF_SD ,IF_VIRTIO ,IF_XEN ,IF_COUNT }BlockInterfaceType ;
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
[Qemu-devel] [PULL 10/11] hw: Deprecate -drive if=scsi with non-onboard HBAs
In reply to Markus ArmbrusterBlock backends defined with "-drive if=T" with T other than "none" are meant to be picked up by machine initialization code: a suitable frontend gets created and wired up automatically.
Drives defined with if=scsi are also picked up by SCSI HBAs added with -device, unlike other interface types. Deprecate this usage, as follows.
Create the frontends for onboard HBAs in machine initialization code, exactly like we do for if=ide and other interface types. Change scsi_legacy_handle_cmdline() to create a frontend only when it's still missing, and warn that this usage is deprecated.
Message-Id: <[email protected]>
--- hw/arm/realview.c | 2 +- hw/arm/versatilepb.c | 2 +- hw/i386/pc.c | 2 +- hw/scsi/lsi53c895a.c | 7 +++++++ hw/scsi/scsi-bus.c | 15 +++++++++++++-- hw/scsi/spapr_vscsi.c | 2 ++ include/hw/pci/pci.h | 2 ++ include/hw/scsi/scsi.h | 2 +- vl.c | 8 +++++++- 9 files changed, 35 insertions(+), 7 deletions(-)
hw/arm/realview.c +1 -1
@@ -259,7 +259,7 @@ static void realview_init(MachineState *machine, } n =drive_get_max_bus (IF_SCSI );while (n >=0 ) { -pci_create_simple (pci_bus,-1 ,"lsi53c895a" ); +lsi53c895a_create (pci_bus); n--; } }
hw/arm/versatilepb.c +1 -1
@@ -290,7 +290,7 @@ static void versatile_init(MachineState *machine, int board_id) } n =drive_get_max_bus (IF_SCSI );while (n >=0 ) { -pci_create_simple (pci_bus,-1 ,"lsi53c895a" ); +lsi53c895a_create (pci_bus); n--; }
hw/i386/pc.c +1 -1
@@ -1652,7 +1652,7 @@ void pc_pci_device_init(PCIBus *pci_bus) max_bus =drive_get_max_bus (IF_SCSI );for (bus =0 ; bus <= max_bus; bus++) { -pci_create_simple (pci_bus,-1 ,"lsi53c895a" ); +lsi53c895a_create (pci_bus); } }
hw/scsi/lsi53c895a.c +7 -0
@@ -2268,3 +2268,10 @@ static void lsi53c895a_register_types(void) }type_init (lsi53c895a_register_types) + +void lsi53c895a_create(PCIBus *bus) +{ +LSIState *s =LSI53C895A (pci_create_simple (bus,-1 ,"lsi53c895a" )); + +scsi_bus_legacy_handle_cmdline (&s->bus, false); +}
hw/scsi/scsi-bus.c +13 -2
@@ -261,7 +261,7 @@ SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockBackend *blk,return SCSI_DEVICE (dev); } -void scsi_bus_legacy_handle_cmdline (SCSIBus *bus) +void scsi_bus_legacy_handle_cmdline (SCSIBus *bus,bool deprecated) {Location loc;DriveInfo *dinfo;
@@ -274,6 +274,17 @@ void scsi_bus_legacy_handle_cmdline(SCSIBus *bus)continue ; }qemu_opts_loc_restore (dinfo->opts); +if (deprecated) { +/* Handling -drive not claimed by machine initialization */ +if (blk_get_attached_dev (blk_by_legacy_dinfo (dinfo))) { +continue ;/* claimed */ + } +if (!dinfo->is_default) { +error_report ("warning: bus=%d,unit=%d is deprecated with this" +" machine type" , + bus->busnr, unit); + } + }scsi_bus_legacy_add_drive (bus,blk_by_legacy_dinfo (dinfo), unit, false,-1 ,NULL , &error_fatal); }
@@ -304,7 +315,7 @@ static int scsi_legacy_handle_cmdline_cb(Object *obj, void *opaque)SCSIBus *bus = (SCSIBus *)object_dynamic_cast (obj,TYPE_SCSI_BUS );if (bus &&is_scsi_hba_with_legacy_magic (OBJECT (bus->qbus.parent))) { -scsi_bus_legacy_handle_cmdline (bus); +scsi_bus_legacy_handle_cmdline (bus, true); }return 0 ;
hw/scsi/spapr_vscsi.c +2 -0
@@ -1215,6 +1215,8 @@ void spapr_vscsi_create(VIOsPAPRBus *bus) dev =qdev_create (&bus->bus,"spapr-vscsi" );qdev_init_nofail (dev); +scsi_bus_legacy_handle_cmdline (&VIO_SPAPR_VSCSI_DEVICE (dev)->bus, + false); }static int spapr_vscsi_devnode (VIOsPAPRDevice *dev,void *fdt,int node_off)
include/hw/pci/pci.h +2 -0
@@ -688,6 +688,8 @@ PCIDevice *pci_create_simple_multifunction(PCIBus *bus, int devfn,PCIDevice *pci_create (PCIBus *bus,int devfn,const char *name);PCIDevice *pci_create_simple (PCIBus *bus,int devfn,const char *name); +void lsi53c895a_create (PCIBus *bus); +qemu_irq pci_allocate_irq (PCIDevice *pci_dev);void pci_set_irq (PCIDevice *pci_dev,int level);
include/hw/scsi/scsi.h +1 -1
@@ -177,7 +177,7 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d)SCSIDevice *scsi_bus_legacy_add_drive (SCSIBus *bus,BlockBackend *blk,int unit,bool removable,int bootindex,const char *serial,Error **errp); -void scsi_bus_legacy_handle_cmdline (SCSIBus *bus); +void scsi_bus_legacy_handle_cmdline (SCSIBus *bus,bool deprecated);void scsi_legacy_handle_cmdline (void );/*
vl.c +7 -1
@@ -4510,7 +4510,13 @@ int main(int argc, char **argv, char **envp)rom_reset_order_override (); -/* Create frontends for -drive if=scsi */ +/* +* Create frontends for -drive if=scsi leftovers. +* Normally, frontends for -drive get created by machine +* initialization for onboard SCSI HBAs. However, we create a few +* more ever since SCSI qdevification, but this is pretty much an +* implementation accident, and deprecated. +*/ scsi_legacy_handle_cmdline ();/* Did we create any drives that we failed to create a device for? */
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 07/11] blockdev: Make orphaned -drive fatal
In reply to Markus ArmbrusterBlock backends defined with "-drive if=T" with T other than "none" are meant to be picked up by machine initialization code: a suitable frontend gets created and wired up automatically.
If machine initialization code doesn't comply, the block backend remains unused. This triggers a warning since commit a66c9dc, v2.2.0. Drives created by default are exempted; use -nodefaults to get rid of them.
Turn this warning into an error.
Message-Id: <[email protected]>
--- blockdev.c | 14 +++++++------- include/sysemu/blockdev.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-)
blockdev.c +7 -7
@@ -227,30 +227,30 @@ DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit)return NULL ; } -bool drive_check_orphaned (void ) +void drive_check_orphaned (void ) {BlockBackend *blk;DriveInfo *dinfo;Location loc; -bool rs = false; +bool orphans = false;for (blk =blk_next (NULL ); blk; blk =blk_next (blk)) { dinfo =blk_legacy_dinfo (blk); -/* If dinfo->bdrv->dev is NULL, it has no device attached. */ -/* Unless this is a default drive, this may be an oversight. */ if (!blk_get_attached_dev (blk) && !dinfo->is_default && dinfo->type !=IF_NONE ) {loc_push_none (&loc);qemu_opts_loc_restore (dinfo->opts); -error_report ("warning: machine type does not support" +error_report ("machine type does not support" " if=%s,bus=%d,unit=%d" , if_name[dinfo->type], dinfo->bus, dinfo->unit);loc_pop (&loc); - rs = true; + orphans = true; } } -return rs; +if (orphans) { +exit (1 ); + } }DriveInfo *drive_get_by_index (BlockInterfaceType type,int index)
include/sysemu/blockdev.h +1 -1
@@ -48,7 +48,7 @@ BlockBackend *blk_by_legacy_dinfo(DriveInfo *dinfo);void override_max_devs (BlockInterfaceType type,int max_devs);DriveInfo *drive_get (BlockInterfaceType type,int bus,int unit); -bool drive_check_orphaned (void ); +void drive_check_orphaned (void );DriveInfo *drive_get_by_index (BlockInterfaceType type,int index);int drive_get_max_bus (BlockInterfaceType type);int drive_get_max_devs (BlockInterfaceType type);
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 08/11] hw: Drop superfluous special checks for orphaned -drive
In reply to Markus ArmbrusterWe've traditionally rejected orphans here and there, but not systematically. For instance, the sun4m machines have an onboard SCSI HBA (bus=0), and have always rejected bus>0. Other machines with an onboard SCSI HBA don't.
Commit a66c9dc made all orphans trigger a warning, and the previous commit turned this into an error. The checks "here and there" are now redundant. Drop them.
Note that the one in mips_jazz.c was wrong: it rejected bus > MAX_FD, but MAX_FD is the number of floppy drives per bus.
Error messages change from
$ qemu-system-x86_64 -drive if=ide,bus=2
qemu-system-x86_64: Too many IDE buses defined (3 > 2)
$ qemu-system-mips64 -M magnum,accel=qtest -drive if=floppy,bus=2,id=fd1
qemu: too many floppy drives
$ qemu-system-sparc -M LX -drive if=scsi,bus=1
qemu: too many SCSI busto
$ qemu-system-x86_64 -drive if=ide,bus=2
qemu-system-x86_64: -drive if=ide,bus=2: machine type does not support if=ide,bus=2,unit=0
$ qemu-system-mips64 -M magnum,accel=qtest -drive if=floppy,bus=2,id=fd1
qemu-system-mips64: -drive if=floppy,bus=2,id=fd1: machine type does not support if=floppy,bus=2,unit=0
$ qemu-system-sparc -M LX -drive if=scsi,bus=1
qemu-system-sparc: -drive if=scsi,bus=1: machine type does not support if=scsi,bus=1,unit=0Message-Id: <[email protected]>
--- hw/ide/core.c | 17 ----------------- hw/mips/mips_jazz.c | 4 ---- hw/sparc/sun4m.c | 5 ----- 3 files changed, 26 deletions(-)
hw/ide/core.c +0 -17
@@ -2840,23 +2840,6 @@ const VMStateDescription vmstate_ide_bus = {void ide_drive_get (DriveInfo **hd,int n) {int i; -int highest_bus =drive_get_max_bus (IF_IDE ) +1 ; -int max_devs =drive_get_max_devs (IF_IDE ); -int n_buses = max_devs ? (n / max_devs) : n; - -/* -* Note: The number of actual buses available is not known. -* We compute this based on the size of the DriveInfo* array, n. -* If it is less than max_devs * <num_real_buses>, -* We will stop looking for drives prematurely instead of overfilling -* the array. -*/ - -if (highest_bus > n_buses) { -error_report ("Too many IDE buses defined (%d > %d)" , - highest_bus, n_buses); -exit (1 ); - }for (i =0 ; i < n; i++) { hd[i] =drive_get_by_index (IF_IDE , i);
hw/mips/mips_jazz.c +0 -4
@@ -291,10 +291,6 @@ static void mips_jazz_init(MachineState *machine, qdev_get_gpio_in(rc4030, 5), &esp_reset, &dma_enable);/* Floppy */ -if (drive_get_max_bus (IF_FLOPPY ) >=MAX_FD ) { -fprintf (stderr,"qemu: too many floppy drives\n" ); -exit (1 ); - }for (n =0 ; n <MAX_FD ; n++) { fds[n] =drive_get (IF_FLOPPY ,0 , n); }
hw/sparc/sun4m.c +0 -5
@@ -989,11 +989,6 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef,slavio_misc_init (hwdef->slavio_base, hwdef->aux1_base, hwdef->aux2_base, slavio_irq[30 ], fdc_tc); -if (drive_get_max_bus (IF_SCSI ) >0 ) { -fprintf (stderr,"qemu: too many SCSI bus\n" ); -exit (1 ); - } -esp_init (hwdef->esp_base,2 , espdma_memory_read, espdma_memory_write, espdma, espdma_irq, &esp_reset, &dma_enable);
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 06/11] blockdev: Improve message for orphaned -drive
In reply to Markus ArmbrusterWe warn when a -drive isn't supported by the machine type (commit a66c9dc):
$ qemu-system-x86_64 -S -display none -drive if=mtd
Warning: Orphaned drive without device: id=mtd0,file=,if=mtd,bus=0,unit=0Improve this to point to the offending bit of configuration:
qemu-system-x86_64: -drive if=mtd: warning: machine type does not support if=mtd,bus=0,unit=0
Especially nice when it's hidden behind -readconfig foo.cfg:
qemu-system-x86_64:foo.cfg:140: warning: machine type does not support if=mtd,bus=0,unit=0
Message-Id: <[email protected]>
--- blockdev.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
blockdev.c +7 -4
@@ -231,6 +231,7 @@ bool drive_check_orphaned(void) {BlockBackend *blk;DriveInfo *dinfo; +Location loc;bool rs = false;for (blk =blk_next (NULL ); blk; blk =blk_next (blk)) {
@@ -239,10 +240,12 @@ bool drive_check_orphaned(void)/* Unless this is a default drive, this may be an oversight. */ if (!blk_get_attached_dev (blk) && !dinfo->is_default && dinfo->type !=IF_NONE ) { -fprintf (stderr,"Warning: Orphaned drive without device: " -"id=%s,file=%s,if=%s,bus=%d,unit=%d\n" , -blk_name (blk),blk_bs (blk) ?blk_bs (blk)->filename :"" , - if_name[dinfo->type], dinfo->bus, dinfo->unit); +loc_push_none (&loc); +qemu_opts_loc_restore (dinfo->opts); +error_report ("warning: machine type does not support" +" if=%s,bus=%d,unit=%d" , + if_name[dinfo->type], dinfo->bus, dinfo->unit); +loc_pop (&loc); rs = true; } }
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 02/11] hw/arm/cubieboard hw/arm/xlnx-ep108: Fix units_per_default_bus
In reply to Markus ArmbrusterMachine types cubieboard, xlnx-ep108, xlnx-zcu102 have an onboard AHCI controller, but neglect to set their MachineClass member units_per_default_bus = 1. This permits -drive if=ide,unit=1, which makes no sense for AHCI. It also screws up index=N for odd N, because it gets desugared to unit=1,bus=N/2
Doesn't really matter, because these machine types fail to honor -drive if=ide. Add the missing units_per_default_bus = 1 anyway, along with a TODO comment on what needs to be done for -drive if=ide.
Also set block_default_type = IF_IDE explicitly. It's currently the default, but the next commit will change it to something more sensible, and we want to keep the IF_IDE default for these three machines. See also the previous commit.
Message-Id: <[email protected]>
--- hw/arm/cubieboard.c | 4 ++++ hw/arm/xlnx-ep108.c | 6 ++++++ 2 files changed, 10 insertions(+)
hw/arm/cubieboard.c +4 -0
@@ -71,6 +71,8 @@ static void cubieboard_init(MachineState *machine)memory_region_add_subregion (get_system_memory (),AW_A10_SDRAM_BASE , &s->sdram); +/* TODO create and connect IDE devices for ide_drive_get() */ + cubieboard_binfo.ram_size = machine->ram_size; cubieboard_binfo.kernel_filename = machine->kernel_filename; cubieboard_binfo.kernel_cmdline = machine->kernel_cmdline;
@@ -82,6 +84,8 @@ static void cubieboard_machine_init(MachineClass *mc) { mc->desc ="cubietech cubieboard" ; mc->init = cubieboard_init; + mc->block_default_type =IF_IDE ; + mc->units_per_default_bus =1 ; }DEFINE_MACHINE ("cubieboard" , cubieboard_machine_init)
hw/arm/xlnx-ep108.c +6 -0
@@ -106,6 +106,8 @@ static void xlnx_ep108_init(MachineState *machine)sysbus_connect_irq (SYS_BUS_DEVICE (&s->soc.spi[i]),1 , cs_line); } +/* TODO create and connect IDE devices for ide_drive_get() */ + xlnx_ep108_binfo.ram_size = ram_size; xlnx_ep108_binfo.kernel_filename = machine->kernel_filename; xlnx_ep108_binfo.kernel_cmdline = machine->kernel_cmdline;
@@ -118,6 +120,8 @@ static void xlnx_ep108_machine_init(MachineClass *mc) { mc->desc ="Xilinx ZynqMP EP108 board" ; mc->init = xlnx_ep108_init; + mc->block_default_type =IF_IDE ; + mc->units_per_default_bus =1 ; }DEFINE_MACHINE ("xlnx-ep108" , xlnx_ep108_machine_init)
@@ -126,6 +130,8 @@ static void xlnx_zcu102_machine_init(MachineClass *mc) { mc->desc ="Xilinx ZynqMP ZCU102 board" ; mc->init = xlnx_ep108_init; + mc->block_default_type =IF_IDE ; + mc->units_per_default_bus =1 ; }DEFINE_MACHINE ("xlnx-zcu102" , xlnx_zcu102_machine_init)
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 09/11] hw/scsi: Concentrate -drive if=scsi auto-create in one place
In reply to Markus ArmbrusterThe logic to create frontends for -drive if=scsi is in SCSI HBAs. For all other interface types, it's in machine initialization code.
A few machine types create the SCSI HBAs necessary for that. That's also not done for other interface types.
I'm going to deprecate these SCSI eccentricities. In preparation for that, create the frontends in main() instead of the SCSI HBAs, by calling new function scsi_legacy_handle_cmdline() there.
Note that not all SCSI HBAs create frontends. Take care not to change that.
Message-Id: <[email protected]>
--- hw/scsi/esp-pci.c | 3 --- hw/scsi/esp.c | 6 ------ hw/scsi/lsi53c895a.c | 3 --- hw/scsi/megasas.c | 4 ---- hw/scsi/mptsas.c | 4 ---- hw/scsi/scsi-bus.c | 45 ++++++++++++++++++++++++++++++++++++++------- hw/scsi/spapr_vscsi.c | 3 --- hw/scsi/virtio-scsi.c | 8 -------- include/hw/scsi/scsi.h | 3 ++- vl.c | 4 ++++ 10 files changed, 44 insertions(+), 39 deletions(-)
hw/scsi/esp-pci.c +0 -3
@@ -367,9 +367,6 @@ static void esp_pci_scsi_realize(PCIDevice *dev, Error **errp) s->irq =pci_allocate_irq (dev);scsi_bus_new (&s->bus,sizeof (s->bus), d, &esp_pci_scsi_info,NULL ); -if (!d->hotplugged) { -scsi_bus_legacy_handle_cmdline (&s->bus, errp); - } }static void esp_pci_scsi_uninit (PCIDevice *d)
hw/scsi/esp.c +0 -6
@@ -690,7 +690,6 @@ static void sysbus_esp_realize(DeviceState *dev, Error **errp)SysBusDevice *sbd =SYS_BUS_DEVICE (dev);SysBusESPState *sysbus =ESP (dev);ESPState *s = &sysbus->esp; -Error *err =NULL ;sysbus_init_irq (sbd, &s->irq);assert (sysbus->it_shift !=-1 );
@@ -703,11 +702,6 @@ static void sysbus_esp_realize(DeviceState *dev, Error **errp)qdev_init_gpio_in (dev, sysbus_esp_gpio_demux,2 );scsi_bus_new (&s->bus,sizeof (s->bus), dev, &esp_scsi_info,NULL ); -scsi_bus_legacy_handle_cmdline (&s->bus, &err); -if (err !=NULL ) { -error_propagate (errp, err); -return ; - } }static void sysbus_esp_hard_reset (DeviceState *dev)
hw/scsi/lsi53c895a.c +0 -3
@@ -2216,9 +2216,6 @@ static void lsi_scsi_realize(PCIDevice *dev, Error **errp)QTAILQ_INIT (&s->queue);scsi_bus_new (&s->bus,sizeof (s->bus), d, &lsi_scsi_info,NULL ); -if (!d->hotplugged) { -scsi_bus_legacy_handle_cmdline (&s->bus, errp); - } }static void lsi_scsi_unrealize (DeviceState *dev,Error **errp)
hw/scsi/megasas.c +0 -4
@@ -2325,7 +2325,6 @@ static const struct SCSIBusInfo megasas_scsi_info = {static void megasas_scsi_realize (PCIDevice *dev,Error **errp) { -DeviceState *d =DEVICE (dev);MegasasState *s =MEGASAS (dev);MegasasBaseClass *b =MEGASAS_DEVICE_GET_CLASS (s);uint8_t *pci_conf;
@@ -2426,9 +2425,6 @@ static void megasas_scsi_realize(PCIDevice *dev, Error **errp)scsi_bus_new (&s->bus,sizeof (s->bus),DEVICE (dev), &megasas_scsi_info,NULL ); -if (!d->hotplugged) { -scsi_bus_legacy_handle_cmdline (&s->bus, errp); - } }static Property megasas_properties_gen1[] = {
hw/scsi/mptsas.c +0 -4
@@ -1271,7 +1271,6 @@ static const struct SCSIBusInfo mptsas_scsi_info = {static void mptsas_scsi_realize (PCIDevice *dev,Error **errp) { -DeviceState *d =DEVICE (dev);MPTSASState *s =MPT_SAS (dev);Error *err =NULL ;int ret;
@@ -1326,9 +1325,6 @@ static void mptsas_scsi_realize(PCIDevice *dev, Error **errp)QTAILQ_INIT (&s->pending);scsi_bus_new (&s->bus,sizeof (s->bus), &dev->qdev, &mptsas_scsi_info,NULL ); -if (!d->hotplugged) { -scsi_bus_legacy_handle_cmdline (&s->bus, errp); - } }static void mptsas_scsi_uninit (PCIDevice *dev)
hw/scsi/scsi-bus.c +38 -7
65 lines not on this page · raw message
hw/scsi/spapr_vscsi.c +0 -3
@@ -1206,9 +1206,6 @@ static void spapr_vscsi_realize(VIOsPAPRDevice *dev, Error **errp)scsi_bus_new (&s->bus,sizeof (s->bus),DEVICE (dev), &vscsi_scsi_info,NULL ); -if (!dev->qdev.hotplugged) { -scsi_bus_legacy_handle_cmdline (&s->bus, errp); - } }void spapr_vscsi_create (VIOsPAPRBus *bus)
hw/scsi/virtio-scsi.c +0 -8
@@ -897,14 +897,6 @@ static void virtio_scsi_device_realize(DeviceState *dev, Error **errp)/* override default SCSI bus hotplug-handler, with virtio-scsi's one */ qbus_set_hotplug_handler (BUS (&s->bus), dev, &error_abort); -if (!dev->hotplugged) { -scsi_bus_legacy_handle_cmdline (&s->bus, &err); -if (err !=NULL ) { -error_propagate (errp, err); -return ; - } - } -virtio_scsi_dataplane_setup (s, errp); }
include/hw/scsi/scsi.h +2 -1
@@ -177,7 +177,8 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d)SCSIDevice *scsi_bus_legacy_add_drive (SCSIBus *bus,BlockBackend *blk,int unit,bool removable,int bootindex,const char *serial,Error **errp); -void scsi_bus_legacy_handle_cmdline (SCSIBus *bus,Error **errp); +void scsi_bus_legacy_handle_cmdline (SCSIBus *bus); +void scsi_legacy_handle_cmdline (void );/* * Predefined sense codes
vl.c +4 -0
@@ -62,6 +62,7 @@ int main(int argc, char **argv)#include "hw/usb.h" #include "hw/i386/pc.h" #include "hw/isa/isa.h" +#include "hw/scsi/scsi.h" #include "hw/bt.h" #include "sysemu/watchdog.h" #include "hw/smbios/smbios.h"
@@ -4509,6 +4510,9 @@ int main(int argc, char **argv, char **envp)rom_reset_order_override (); +/* Create frontends for -drive if=scsi */ +scsi_legacy_handle_cmdline (); +/* Did we create any drives that we failed to create a device for? */ drive_check_orphaned ();
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 11/11] hw/i386: Deprecate -drive if=scsi with PC machine types
In reply to Markus ArmbrusterThe PC machines (pc-q35-* pc-i440fx-* pc-* isapc xenfv) automatically create lsi53c895a SCSI HBAs and SCSI devices to honor -drive if=scsi. For giggles, try -drive if=scsi,bus=25,media=cdrom --- this makes QEMU create 25 of them.
lsi53c895a is thoroughly obsolete (PCI Ultra2 SCSI, ca. 2000), and currently has no maintainer in QEMU. megasas is a better choice, except with old OSes that lack drivers. virtio-scsi is a much better choice when you have a driver, but only (newish) Linux comes with one in the box. There is no good default that works for all guests.
Encourage users to pick a non-obsolete SCSI HBA that works for them by deprecating -drive if=scsi.
Message-Id: <[email protected]>
--- hw/i386/pc.c | 8 +++++++- qemu-options.hx | 5 ----- tests/qemu-iotests/051.pc.out | 12 ++++++++---- 3 files changed, 15 insertions(+), 10 deletions(-)
hw/i386/pc.c +7 -1
@@ -1650,9 +1650,15 @@ void pc_pci_device_init(PCIBus *pci_bus)int max_bus;int bus; +/* Note: if=scsi is deprecated with PC machine types */ max_bus =drive_get_max_bus (IF_SCSI );for (bus =0 ; bus <= max_bus; bus++) { -lsi53c895a_create (pci_bus); +pci_create_simple (pci_bus,-1 ,"lsi53c895a" ); +/* +* By not creating frontends here, we make +* scsi_legacy_handle_cmdline() create them, and warn that +* this usage is deprecated. +*/ } }
qemu-options.hx +0 -5
@@ -654,11 +654,6 @@ If you don't specify the "file=" argument, you define an empty drive: qemu-system-i386 -drive if=ide,index=1,media=cdrom @end example -You can connect a SCSI disk with unit ID 6 on the bus #0: -@example -qemu-system-i386 -drive file=file,if=scsi,bus=0,unit=6 -@end example - Instead of @option{-fda}, @option{-fdb}, you can use: @example qemu-system-i386 -drive file=file,index=0,if=floppy
tests/qemu-iotests/051.pc.out +8 -4
@@ -118,7 +118,8 @@ QEMU X.Y.Z monitor - type 'help' for more information Testing: -drive if=scsi,media=cdrom QEMU X.Y.Z monitor - type 'help' for more information -(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K +(qemu) QEMU_PROG: -drive if=scsi,media=cdrom: warning: bus=0,unit=0 is deprecated with this machine type +q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K Testing: -drive if=ide QEMU X.Y.Z monitor - type 'help' for more information
@@ -127,7 +128,8 @@ QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed. Testing: -drive if=scsi QEMU X.Y.Z monitor - type 'help' for more information -(qemu) QEMU_PROG: Initialization of device lsi53c895a failed: Device needs media, but drive is empty +(qemu) QEMU_PROG: -drive if=scsi: warning: bus=0,unit=0 is deprecated with this machine type +QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty Testing: -drive if=virtio QEMU X.Y.Z monitor - type 'help' for more information
@@ -172,7 +174,8 @@ QEMU X.Y.Z monitor - type 'help' for more information Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on QEMU X.Y.Z monitor - type 'help' for more information -(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K +(qemu) QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on: warning: bus=0,unit=0 is deprecated with this machine type +q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on QEMU X.Y.Z monitor - type 'help' for more information
@@ -181,7 +184,8 @@ QEMU_PROG: Initialization of device ide-hd failed: Device initialization failed. Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on QEMU X.Y.Z monitor - type 'help' for more information -(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K +(qemu) QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on: warning: bus=0,unit=0 is deprecated with this machine type +q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on QEMU X.Y.Z monitor - type 'help' for more information
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 01/11] hw: Default -drive to if=ide explicitly where it works
In reply to Markus ArmbrusterBlock backends defined with -drive if=ide are meant to be picked up by machine initialization code: a suitable frontend gets created and wired up automatically.
if=ide drives not picked up that way can still be used with -device as if they had if=none, but that's unclean and best avoided. Unused ones produce an "Orphaned drive without device" warning.
-drive parameter "if" is optional, and the default depends on the machine type. If a machine type doesn't specify a default, the default is "ide".
Many machine types default to if=ide, even though they don't actually have an IDE controller. A future patch will change these defaults to something more sensible. To prepare for it, this patch makes default "ide" explicit for the machines that actually pick up if=ide drives:
* alpha: clipper
* arm/aarch64: spitz borzoi terrier tosa
* i386/x86_64: generic-pc-machine (with concrete subtypes pc-q35-* pc-i440fx-* pc-* isapc xenfv)
* mips64el: fulong2e
* mips/mipsel/mips64el: malta mips
* ppc/ppc64: mac99 g3beige prep
* sh4/sh4eb: r2d
* sparc64: sun4u sun4v
Note that ppc64 machine powernv already sets an "ide" default explicitly. Its IDE controller isn't implemented, yet.
Message-Id: <[email protected]>
--- hw/alpha/dp264.c | 1 + hw/arm/spitz.c | 3 +++ hw/arm/tosa.c | 1 + hw/i386/pc.c | 1 + hw/mips/mips_fulong2e.c | 1 + hw/mips/mips_malta.c | 1 + hw/mips/mips_r4k.c | 1 + hw/ppc/mac_newworld.c | 1 + hw/ppc/mac_oldworld.c | 1 + hw/ppc/prep.c | 1 + hw/sh4/r2d.c | 1 + hw/sparc64/sun4u.c | 2 ++ 12 files changed, 15 insertions(+)
hw/alpha/dp264.c +1 -0
@@ -177,6 +177,7 @@ static void clipper_machine_init(MachineClass *mc) { mc->desc ="Alpha DP264/CLIPPER" ; mc->init = clipper_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =4 ; mc->is_default =1 ; }
hw/arm/spitz.c +3 -0
@@ -998,6 +998,7 @@ static void spitzpda_class_init(ObjectClass *oc, void *data) mc->desc ="Sharp SL-C3000 (Spitz) PDA (PXA270)" ; mc->init = spitz_init; + mc->block_default_type =IF_IDE ; }static const TypeInfo spitzpda_type = {
@@ -1012,6 +1013,7 @@ static void borzoipda_class_init(ObjectClass *oc, void *data) mc->desc ="Sharp SL-C3100 (Borzoi) PDA (PXA270)" ; mc->init = borzoi_init; + mc->block_default_type =IF_IDE ; }static const TypeInfo borzoipda_type = {
@@ -1026,6 +1028,7 @@ static void terrierpda_class_init(ObjectClass *oc, void *data) mc->desc ="Sharp SL-C3200 (Terrier) PDA (PXA270)" ; mc->init = terrier_init; + mc->block_default_type =IF_IDE ; }static const TypeInfo terrierpda_type = {
hw/arm/tosa.c +1 -0
@@ -263,6 +263,7 @@ static void tosapda_machine_init(MachineClass *mc) { mc->desc ="Sharp SL-6000 (Tosa) PDA (PXA255)" ; mc->init = tosa_init; + mc->block_default_type =IF_IDE ; }DEFINE_MACHINE ("tosa" , tosapda_machine_init)
hw/i386/pc.c +1 -0
@@ -2339,6 +2339,7 @@ static void pc_machine_class_init(ObjectClass *oc, void *data) mc->query_hotpluggable_cpus = pc_query_hotpluggable_cpus; mc->default_boot_order ="cad" ; mc->hot_add_cpu = pc_hot_add_cpu; + mc->block_default_type =IF_IDE ; mc->max_cpus =255 ; mc->reset = pc_machine_reset; hc->pre_plug = pc_machine_device_pre_plug_cb;
hw/mips/mips_fulong2e.c +1 -0
@@ -387,6 +387,7 @@ static void mips_fulong2e_machine_init(MachineClass *mc) { mc->desc ="Fulong 2e mini pc" ; mc->init = mips_fulong2e_init; + mc->block_default_type =IF_IDE ; }DEFINE_MACHINE ("fulong2e" , mips_fulong2e_machine_init)
hw/mips/mips_malta.c +1 -0
@@ -1264,6 +1264,7 @@ static void mips_malta_machine_init(MachineClass *mc) { mc->desc ="MIPS Malta Core LV" ; mc->init = mips_malta_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =16 ; mc->is_default =1 ; }
hw/mips/mips_r4k.c +1 -0
@@ -306,6 +306,7 @@ static void mips_machine_init(MachineClass *mc) { mc->desc ="mips r4k platform" ; mc->init = mips_r4k_init; + mc->block_default_type =IF_IDE ; }DEFINE_MACHINE ("mips" , mips_machine_init)
hw/ppc/mac_newworld.c +1 -0
@@ -518,6 +518,7 @@ static void core99_machine_class_init(ObjectClass *oc, void *data) mc->desc ="Mac99 based PowerMAC" ; mc->init = ppc_core99_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =MAX_CPUS ; mc->default_boot_order ="cd" ; mc->kvm_type = core99_kvm_type;
hw/ppc/mac_oldworld.c +1 -0
@@ -368,6 +368,7 @@ static void heathrow_machine_init(MachineClass *mc) { mc->desc ="Heathrow based PowerMAC" ; mc->init = ppc_heathrow_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =MAX_CPUS ;#ifndef TARGET_PPC64 mc->is_default =1 ;
hw/ppc/prep.c +1 -0
@@ -684,6 +684,7 @@ static void prep_machine_init(MachineClass *mc) { mc->desc ="PowerPC PREP platform" ; mc->init = ppc_prep_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =MAX_CPUS ; mc->default_boot_order ="cad" ; }
hw/sh4/r2d.c +1 -0
@@ -362,6 +362,7 @@ static void r2d_machine_init(MachineClass *mc) { mc->desc ="r2d-plus board" ; mc->init = r2d_init; + mc->block_default_type =IF_IDE ; }DEFINE_MACHINE ("r2d" , r2d_machine_init)
hw/sparc64/sun4u.c +2 -0
@@ -579,6 +579,7 @@ static void sun4u_class_init(ObjectClass *oc, void *data) mc->desc ="Sun4u platform" ; mc->init = sun4u_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =1 ;/* XXX for now */ mc->is_default =1 ; mc->default_boot_order ="c" ;
@@ -596,6 +597,7 @@ static void sun4v_class_init(ObjectClass *oc, void *data) mc->desc ="Sun4v platform" ; mc->init = sun4v_init; + mc->block_default_type =IF_IDE ; mc->max_cpus =1 ;/* XXX for now */ mc->default_boot_order ="c" ; }
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 04/11] hw: Default -drive to if=none instead of scsi when scsi cannot work
In reply to Markus ArmbrusterBlock backends defined with -drive if=scsi are meant to be picked up by machine initialization code: a suitable frontend gets created and wired up automatically.
if=scsi drives not picked up that way can still be used with -device as if they had if=none, but that's unclean and best avoided. Unused ones produce an "Orphaned drive without device" warning.
A few machine types default to if=scsi, even though they don't actually have a SCSI HBA. This makes no sense. Change their default to if=none. Affected machines:
* aarch64/arm: realview-pbx-a9 vexpress-a9 vexpress-a15 xilinx-zynq-a9
Message-Id: <[email protected]>
--- hw/arm/realview.c | 1 - hw/arm/vexpress.c | 1 - hw/arm/xilinx_zynq.c | 1 - 3 files changed, 3 deletions(-)
hw/arm/realview.c +0 -1
@@ -443,7 +443,6 @@ static void realview_pbx_a9_class_init(ObjectClass *oc, void *data) mc->desc ="ARM RealView Platform Baseboard Explore for Cortex-A9" ; mc->init = realview_pbx_a9_init; - mc->block_default_type =IF_SCSI ; mc->max_cpus =4 ; }
hw/arm/vexpress.c +0 -1
@@ -752,7 +752,6 @@ static void vexpress_class_init(ObjectClass *oc, void *data) mc->desc ="ARM Versatile Express" ; mc->init = vexpress_common_init; - mc->block_default_type =IF_SCSI ; mc->max_cpus =4 ; }
hw/arm/xilinx_zynq.c +0 -1
@@ -323,7 +323,6 @@ static void zynq_machine_init(MachineClass *mc) { mc->desc ="Xilinx Zynq Platform Baseboard for Cortex-A9" ; mc->init = zynq_init; - mc->block_default_type =IF_SCSI ; mc->max_cpus =1 ; mc->no_sdcard =1 ; }
Signature · 1 line
2.7.4
[Qemu-arm] [PULL 05/11] hw/arm/highbank: Default -drive to if=ide instead of if=scsi
In reply to Markus ArmbrusterThese machines have no onboard SCSI HBA, and no way to plug one. -drive if=scsi therefore cannot work. They do have an onboard IDE controller (sysbus-ahci), but fail to honor if=ide.
Change their default to if=ide, and add a TODO comment on what needs to be done to actually honor -drive if=ide.
Message-Id: <[email protected]>
--- hw/arm/highbank.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
hw/arm/highbank.c +6 -2
@@ -363,6 +363,8 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id)sysbus_connect_irq (SYS_BUS_DEVICE (dev),2 , pic[82 ]); } +/* TODO create and connect IDE devices for ide_drive_get() */ + highbank_binfo.ram_size = ram_size; highbank_binfo.kernel_filename = kernel_filename; highbank_binfo.kernel_cmdline = kernel_cmdline;
@@ -405,7 +407,8 @@ static void highbank_class_init(ObjectClass *oc, void *data) mc->desc ="Calxeda Highbank (ECX-1000)" ; mc->init = highbank_init; - mc->block_default_type =IF_SCSI ; + mc->block_default_type =IF_IDE ; + mc->units_per_default_bus =1 ; mc->max_cpus =4 ; }
@@ -421,7 +424,8 @@ static void midway_class_init(ObjectClass *oc, void *data) mc->desc ="Calxeda Midway (ECX-2000)" ; mc->init = midway_init; - mc->block_default_type =IF_SCSI ; + mc->block_default_type =IF_IDE ; + mc->units_per_default_bus =1 ; mc->max_cpus =4 ; }
Signature · 1 line
2.7.4
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Subject: [Qemu-devel] [PULL 00/11] Changes to -drive without if= and with if=scsi
Message-id: [email protected]
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
# Useful git options
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected] * [new tag] patchew/[email protected] -> patchew/[email protected] * [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
8bfef42 hw/i386: Deprecate -drive if=scsi with PC machine types 7638d3f hw: Deprecate -drive if=scsi with non-onboard HBAs dc17149 hw/scsi: Concentrate -drive if=scsi auto-create in one place 6196006 hw: Drop superfluous special checks for orphaned -drive 3d87f86 blockdev: Make orphaned -drive fatal
a7472ca blockdev: Improve message for orphaned -drive
781e308 hw/arm/highbank: Default -drive to if=ide instead of if=scsi 04b725b hw: Default -drive to if=none instead of scsi when scsi cannot work cecd7a2 hw: Default -drive to if=none instead of ide when ide cannot work 027c597 hw/arm/cubieboard hw/arm/xlnx-ep108: Fix units_per_default_bus ccfec9e hw: Default -drive to if=ide explicitly where it works
=== OUTPUT BEGIN ===
Checking PATCH 1/11: hw: Default -drive to if=ide explicitly where it works... Checking PATCH 2/11: hw/arm/cubieboard hw/arm/xlnx-ep108: Fix units_per_default_bus... Checking PATCH 3/11: hw: Default -drive to if=none instead of ide when ide cannot work... Checking PATCH 4/11: hw: Default -drive to if=none instead of scsi when scsi cannot work... Checking PATCH 5/11: hw/arm/highbank: Default -drive to if=ide instead of if=scsi... Checking PATCH 6/11: blockdev: Improve message for orphaned -drive... Checking PATCH 7/11: blockdev: Make orphaned -drive fatal...
Checking PATCH 8/11: hw: Drop superfluous special checks for orphaned -drive... Checking PATCH 9/11: hw/scsi: Concentrate -drive if=scsi auto-create in one place... Checking PATCH 10/11: hw: Deprecate -drive if=scsi with non-onboard HBAs... Checking PATCH 11/11: hw/i386: Deprecate -drive if=scsi with PC machine types...
ERROR: Invalid UTF-8, patch and commit message should be encoded in UTF-8 #72: FILE: tests/qemu-iotests/051.pc.out:122:
+q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
^
ERROR: Invalid UTF-8, patch and commit message should be encoded in UTF-8 #92: FILE: tests/qemu-iotests/051.pc.out:178:
+q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
^
ERROR: Invalid UTF-8, patch and commit message should be encoded in UTF-8 #102: FILE: tests/qemu-iotests/051.pc.out:188:
+q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K
^
total: 3 errors, 0 warnings, 63 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Peter Maydell
AppliedQuoted 15 lines · Markus Armbruster
The following changes since commit
b856256179f14c33a513d0b9cc3e4be355b95f43:Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20170221-1' into staging (2017-02-21 09:35:15 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/armbru.gittags/pull-block-2017-02-21for you to fetch changes up to
f778a82f0c179634892ea716970d4d35264dc841:hw/i386: Deprecate -drive if=scsi with PC machine types (2017-02-21 13:17:45 +0100)
----------------------------------------------------------------
Changes to -drive without if= and with if=scsi
Quoted 13 lines
----------------------------------------------------------------
Markus Armbruster (11):
hw: Default -drive to if=ide explicitly where it works hw/arm/cubieboard hw/arm/xlnx-ep108: Fixunits_per_default_bus
hw: Default -drive to if=none instead of ide when ide cannot work
hw: Default -drive to if=none instead of scsi when scsi cannot work hw/arm/highbank: Default -drive to if=ide instead of if=scsi
blockdev: Improve message for orphaned -drive
blockdev: Make orphaned -drive fatal
hw: Drop superfluous special checks for orphaned -drive hw/scsi: Concentrate -drive if=scsi auto-create in one place
hw: Deprecate -drive if=scsi with non-onboard HBAs hw/i386: Deprecate -drive if=scsi with PC machine types
Applied, thanks.
-- PMM