From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCHv2 0/8 RFC] boot order specification Date: Sun, 31 Oct 2010 13:40:01 +0200 Message-ID: <1288525209-3303-1-git-send-email-gleb@redhat.com> Cc: kvm@vger.kernel.org, blauwirbel@gmail.com, armbru@redhat.com, alex.williamson@redhat.com To: qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:12390 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755379Ab0JaLkR (ORCPT ); Sun, 31 Oct 2010 07:40:17 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is current sate of the patch series for people to comment on. I tried to use open firmware naming scheme to specify device path names. The patch series produce names like these: for pci machine: /pci@i0cf8/pci-isa-bridge@1/fdc@03f1/floppy@0 /pci@i0cf8/pci-isa-bridge@1/fdc@03f1/floppy@1 /pci@i0cf8/ata@1,1/ata-disk@1:0 /pci@i0cf8/ata@1,1/ata-disk@1:1 /pci@i0cf8/virtio-blk@3/virtio-disk@0 /pci@i0cf8/ethernet@4/ethernet-phy@0 /pci@i0cf8/ethernet@5/ethernet-phy@0 for isa machine: adding '/isa/fdc@03f1/floppy@0' at index 2 adding '/isa/fdc@03f1/floppy@1' at index 1 adding '/isa/ata@0170/ata-disk@0:0' at index 0 adding '/isa/ata@0170/ata-disk@0:1' at index 3 Gleb Natapov (8): Introduce deriver_name field to DeviceInfo structure. Keep track of ISA ports ISA device is using in qdev. Add get_dev_path callback to ISA bus in qdev. Store IDE bus id in IDEBus structure for easy access. Add get_dev_path callback to IDE bus. Add get_dev_path callback for system bus. Change pci bus get_dev_path callback to print only slot and func Add bootindex parameter to net/block/fd device block_int.h | 4 +++- hw/cs4231a.c | 1 + hw/e1000.c | 7 +++++++ hw/fdc.c | 17 +++++++++++++++++ hw/gus.c | 4 ++++ hw/ide/cmd646.c | 4 ++-- hw/ide/internal.h | 3 ++- hw/ide/isa.c | 5 ++++- hw/ide/piix.c | 5 +++-- hw/ide/qdev.c | 24 +++++++++++++++++++++++- hw/ide/via.c | 4 ++-- hw/isa-bus.c | 41 +++++++++++++++++++++++++++++++++++++++++ hw/isa.h | 4 ++++ hw/m48t59.c | 1 + hw/mc146818rtc.c | 1 + hw/ne2000-isa.c | 3 +++ hw/parallel.c | 5 +++++ hw/pci.c | 11 ++++++----- hw/pci_host.c | 2 ++ hw/pckbd.c | 3 +++ hw/piix_pci.c | 2 ++ hw/qdev.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/qdev.h | 9 +++++++++ hw/sb16.c | 4 ++++ hw/serial.c | 1 + hw/sysbus.c | 30 ++++++++++++++++++++++++++++++ hw/sysbus.h | 4 ++++ hw/virtio-blk.c | 4 ++++ hw/virtio-net.c | 4 ++++ hw/virtio-pci.c | 2 ++ net.h | 4 +++- sysemu.h | 9 +++++++++ vl.c | 24 ++++++++++++++++++++++++ 33 files changed, 282 insertions(+), 16 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55415 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCWGo-0007lH-Tt for qemu-devel@nongnu.org; Sun, 31 Oct 2010 07:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCWGn-0008EU-Jo for qemu-devel@nongnu.org; Sun, 31 Oct 2010 07:40:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCWGn-0008EA-7U for qemu-devel@nongnu.org; Sun, 31 Oct 2010 07:40:17 -0400 From: Gleb Natapov Date: Sun, 31 Oct 2010 13:40:01 +0200 Message-Id: <1288525209-3303-1-git-send-email-gleb@redhat.com> Subject: [Qemu-devel] [PATCHv2 0/8 RFC] boot order specification List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, alex.williamson@redhat.com, armbru@redhat.com, kvm@vger.kernel.org This is current sate of the patch series for people to comment on. I tried to use open firmware naming scheme to specify device path names. The patch series produce names like these: for pci machine: /pci@i0cf8/pci-isa-bridge@1/fdc@03f1/floppy@0 /pci@i0cf8/pci-isa-bridge@1/fdc@03f1/floppy@1 /pci@i0cf8/ata@1,1/ata-disk@1:0 /pci@i0cf8/ata@1,1/ata-disk@1:1 /pci@i0cf8/virtio-blk@3/virtio-disk@0 /pci@i0cf8/ethernet@4/ethernet-phy@0 /pci@i0cf8/ethernet@5/ethernet-phy@0 for isa machine: adding '/isa/fdc@03f1/floppy@0' at index 2 adding '/isa/fdc@03f1/floppy@1' at index 1 adding '/isa/ata@0170/ata-disk@0:0' at index 0 adding '/isa/ata@0170/ata-disk@0:1' at index 3 Gleb Natapov (8): Introduce deriver_name field to DeviceInfo structure. Keep track of ISA ports ISA device is using in qdev. Add get_dev_path callback to ISA bus in qdev. Store IDE bus id in IDEBus structure for easy access. Add get_dev_path callback to IDE bus. Add get_dev_path callback for system bus. Change pci bus get_dev_path callback to print only slot and func Add bootindex parameter to net/block/fd device block_int.h | 4 +++- hw/cs4231a.c | 1 + hw/e1000.c | 7 +++++++ hw/fdc.c | 17 +++++++++++++++++ hw/gus.c | 4 ++++ hw/ide/cmd646.c | 4 ++-- hw/ide/internal.h | 3 ++- hw/ide/isa.c | 5 ++++- hw/ide/piix.c | 5 +++-- hw/ide/qdev.c | 24 +++++++++++++++++++++++- hw/ide/via.c | 4 ++-- hw/isa-bus.c | 41 +++++++++++++++++++++++++++++++++++++++++ hw/isa.h | 4 ++++ hw/m48t59.c | 1 + hw/mc146818rtc.c | 1 + hw/ne2000-isa.c | 3 +++ hw/parallel.c | 5 +++++ hw/pci.c | 11 ++++++----- hw/pci_host.c | 2 ++ hw/pckbd.c | 3 +++ hw/piix_pci.c | 2 ++ hw/qdev.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/qdev.h | 9 +++++++++ hw/sb16.c | 4 ++++ hw/serial.c | 1 + hw/sysbus.c | 30 ++++++++++++++++++++++++++++++ hw/sysbus.h | 4 ++++ hw/virtio-blk.c | 4 ++++ hw/virtio-net.c | 4 ++++ hw/virtio-pci.c | 2 ++ net.h | 4 +++- sysemu.h | 9 +++++++++ vl.c | 24 ++++++++++++++++++++++++ 33 files changed, 282 insertions(+), 16 deletions(-)