From: Paolo Bonzini <pbonzini@redhat.com>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: Brian Jackson <iggy@theiggy.com>,
Michael Tokarev <mjt@tls.msk.ru>,
Gerd Hoffmann <kraxel@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] XP install cores with SCSI LSI 53C895A disks
Date: Fri, 09 Mar 2012 09:08:06 +0100 [thread overview]
Message-ID: <4F59BA66.40502@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.02.1203090843170.28069@bbs.intern>
Il 09/03/2012 08:46, Gerhard Wiesinger ha scritto:
> On Fri, 9 Mar 2012, Gerd Hoffmann wrote:
>
>> Hi,
>>
>>>>> #2 isn't an issue actually, at least for Debian users --
>>>>
>>>> Well, it is, to some degree. Because vanilla upstream doesn't support
>>>> booting from lsi it has alot less users and alot less regression
>>>> testing
>>>> (like autotest runs of lsi-scsi installs), which sums up to more bugs
>>>> staying unnoticed like the one which triggered this thread.
>>>
>>> What's the holdup to integrate it into QEMU?
>>
>> Extboot is considered obsolete and thus several attempts to merge it
>> into upstream qemu failed. It started its life as hack to allow
>> qemu-kvm boot from virtio-blk devices, which happened to work for lsi
>> too. virtio-blk is supported by seabios natively these days.
>>
>> Adding lsi support to seabios shouldn't be that hard. Paolo paved the
>> way by restructing the existing scsi disk/cdrom bits in seabios so they
>> work for both usb-storage and virtio-scsi. Adding support for yet
>> another scsi hba should be easy, all the support bits for handling disks
>> and booting from cdrom are there already.
>>
>> It just needs someone to sit down for a week or two and hack it up.
>
> @Paolo: Would that be easily possible?
Sure.
You could expect the SeaBIOS driver to be 700-100 lines of code:
$ wc lsi53c895a.c virtio-scsi.c usb-msd.c # in QEMU
2150 6959 62694 lsi53c895a.c
617 1537 18463 virtio-scsi.c
677 1847 18465 usb-msd.c
$ wc virtio-scsi.c usb-msc.c # in SeaBIOS
177 517 4711 virtio-scsi.c
174 499 4935 usb-msc.c
As Gerd said, the SCSI layer is entirely abstracted (the only piece
missing to abstract is discovery, which is why virtio-scsi will only
boot from LUN0). The driver only needs to provide a way to execute CDBs.
> BTW: What do you think anout that:
> Handling INT13h always directly through virtio-scsi regardless of
> selected SCSI adapter, or when OS driver is loaded through SCSI adapter,
> so just have 2 ways to the disks:
> 1.) Through INT13h to virtio-scsi and then to the disks
> 2.) Through SCSI adapter and then to the disks (OS driver loaded)
Interesting idea. :) That would work, I guess.
By the way, you said the lsi53c is buslogic in VMWare and hence libvirt?
Paolo
next prev parent reply other threads:[~2012-03-09 8:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-04 20:13 [Qemu-devel] XP install cores with SCSI LSI 53C895A disks Gerhard Wiesinger
2012-03-07 6:41 ` Gerhard Wiesinger
2012-03-07 14:51 ` Brian Jackson
2012-03-07 19:58 ` Gerhard Wiesinger
2012-03-08 7:44 ` Gerd Hoffmann
2012-03-08 8:54 ` Michael Tokarev
2012-03-08 10:07 ` Gerd Hoffmann
2012-03-09 6:28 ` Gerhard Wiesinger
2012-03-09 7:20 ` Gerd Hoffmann
2012-03-09 7:46 ` Gerhard Wiesinger
2012-03-09 8:08 ` Paolo Bonzini [this message]
2012-03-09 6:25 ` Gerhard Wiesinger
2012-03-09 6:18 ` Gerhard Wiesinger
2012-03-09 7:35 ` Gerd Hoffmann
2012-03-09 8:00 ` Paolo Bonzini
2012-03-09 11:50 ` Kevin O'Connor
2012-03-09 16:48 ` Brian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F59BA66.40502@redhat.com \
--to=pbonzini@redhat.com \
--cc=iggy@theiggy.com \
--cc=kraxel@redhat.com \
--cc=lists@wiesinger.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.