All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel]  q35 and ahci
@ 2012-07-17 15:31 Eric Blake
  2012-07-17 15:47 ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Blake @ 2012-07-17 15:31 UTC (permalink / raw)
  To: jbaron, QEMU Developers; +Cc: David Allan

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

> Update on q35 testing with various os's.
> 
> Linux
> -----
> -RHEL6.3 installs + runs 
> -Fedora 16 install + runs
> -Fedora 17 - squashfs errors 
>    running on already installed f17 seems ok.

Pardon my high-level question (I haven't been following q35 threads
closely), but I just looked at http://wiki.qemu.org/Features/Q35 for the
first time.  Am I correct that all we are doing is adding a new machine
model, but that it will still be possible to select the older machine
model for migration compatibility when migrating a guest in from an
older qemu?  Does libvirt need to do anything special to its generated
command line to specify the old vs. the new machine model?

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-17 15:31 [Qemu-devel] q35 and ahci Eric Blake
@ 2012-07-17 15:47 ` Jason Baron
  2012-07-17 15:50   ` Daniel P. Berrange
  2012-07-18 13:34   ` Gerd Hoffmann
  0 siblings, 2 replies; 18+ messages in thread
From: Jason Baron @ 2012-07-17 15:47 UTC (permalink / raw)
  To: Eric Blake; +Cc: David Allan, QEMU Developers

On Tue, Jul 17, 2012 at 09:31:46AM -0600, Eric Blake wrote:
> > Update on q35 testing with various os's.
> > 
> > Linux
> > -----
> > -RHEL6.3 installs + runs 
> > -Fedora 16 install + runs
> > -Fedora 17 - squashfs errors 
> >    running on already installed f17 seems ok.
> 
> Pardon my high-level question (I haven't been following q35 threads
> closely), but I just looked at http://wiki.qemu.org/Features/Q35 for the
> first time.  Am I correct that all we are doing is adding a new machine
> model, but that it will still be possible to select the older machine
> model for migration compatibility when migrating a guest in from an
> older qemu?  Does libvirt need to do anything special to its generated

yes, right now its specified as -M pc_q35

> command line to specify the old vs. the new machine model?
> 

The current command line I'm using something such as:

$ /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
-hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
-acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio

So it might be nice to avoid the '-acpitable' flag. Perhaps, we can
teach qemu to pull in the correct acpitable depending on the -M
specification...

Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-17 15:47 ` Jason Baron
@ 2012-07-17 15:50   ` Daniel P. Berrange
  2012-07-18 13:34   ` Gerd Hoffmann
  1 sibling, 0 replies; 18+ messages in thread
From: Daniel P. Berrange @ 2012-07-17 15:50 UTC (permalink / raw)
  To: Jason Baron; +Cc: David Allan, Eric Blake, QEMU Developers

On Tue, Jul 17, 2012 at 11:47:14AM -0400, Jason Baron wrote:
> On Tue, Jul 17, 2012 at 09:31:46AM -0600, Eric Blake wrote:
> > > Update on q35 testing with various os's.
> > > 
> > > Linux
> > > -----
> > > -RHEL6.3 installs + runs 
> > > -Fedora 16 install + runs
> > > -Fedora 17 - squashfs errors 
> > >    running on already installed f17 seems ok.
> > 
> > Pardon my high-level question (I haven't been following q35 threads
> > closely), but I just looked at http://wiki.qemu.org/Features/Q35 for the
> > first time.  Am I correct that all we are doing is adding a new machine
> > model, but that it will still be possible to select the older machine
> > model for migration compatibility when migrating a guest in from an
> > older qemu?  Does libvirt need to do anything special to its generated
> 
> yes, right now its specified as -M pc_q35
> 
> > command line to specify the old vs. the new machine model?
> > 
> 
> The current command line I'm using something such as:
> 
> $ /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> -hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
> -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
> 
> So it might be nice to avoid the '-acpitable' flag. Perhaps, we can
> teach qemu to pull in the correct acpitable depending on the -M
> specification...

Absolutely, this requirement to set magic -bios and -acpitable params
when using '-M pc_q35' is really horrible. If QEMU requires a different
BIOS setup for this machine type, then it should just do the right
thing itself, since presumably it knows what it wants better than
libvirt or any other mgmt app does.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-17 15:47 ` Jason Baron
  2012-07-17 15:50   ` Daniel P. Berrange
@ 2012-07-18 13:34   ` Gerd Hoffmann
  1 sibling, 0 replies; 18+ messages in thread
From: Gerd Hoffmann @ 2012-07-18 13:34 UTC (permalink / raw)
  To: Jason Baron; +Cc: David Allan, Eric Blake, QEMU Developers

> The current command line I'm using something such as:
> 
> $ /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> -hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
> -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
> 
> So it might be nice to avoid the '-acpitable' flag. Perhaps, we can
> teach qemu to pull in the correct acpitable depending on the -M
> specification...

I expect those switches being a temporary solution.  Once everything is
upstream in qemu and seabios there should be no need to specify a acpi
table manually.  Likewise for the bios binary.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-20 15:27                       ` Jason Baron
@ 2012-07-22  6:48                         ` Gleb Natapov
  0 siblings, 0 replies; 18+ messages in thread
From: Gleb Natapov @ 2012-07-22  6:48 UTC (permalink / raw)
  To: Jason Baron
  Cc: juzhang, mst, jan.kiszka, qemu-devel, Alexander Graf, yamahata,
	alex.williamson, anthony

On Fri, Jul 20, 2012 at 11:27:40AM -0400, Jason Baron wrote:
> On Thu, Jul 05, 2012 at 05:07:43PM +0200, Alexander Graf wrote:
> > On 07/05/2012 04:06 PM, Jason Baron wrote:
> > >On Wed, Jul 04, 2012 at 10:33:18AM +0200, Alexander Graf wrote:
> > >>On 04.07.2012, at 03:29, Jason Baron wrote:
> > >>
> > >>>On Tue, Jul 03, 2012 at 10:54:37PM +0200, Alexander Graf wrote:
> > >>>>On 03.07.2012, at 22:37, Jason Baron wrote:
> > >>>>
> > >>>>>On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
> > >>>>>>On 03.07.2012, at 20:46, Jason Baron wrote:
> > >>>>>>
> > >>>>>>>On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
> > >>>>>>>>On 03.07.2012, at 20:38, Jason Baron wrote:
> > >>>>>>>>
> > >>>>>>>>>On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> > >>>>>>>>>>On 03.07.2012, at 18:16, Jason Baron wrote:
> > >>>>>>>>>>
> > >>>>>>>>>>>Hi,
> > >>>>>>>>>>>
> > >>>>>>>>>>>Update on q35 testing with various os's.
> > >>>>>>>>>>>
> > >>>>>>>>>>>Linux
> > >>>>>>>>>>>-----
> > >>>>>>>>>>>-RHEL6.3 installs + runs
> > >>>>>>>>>>>-Fedora 16 install + runs
> > >>>>>>>>>>>-Fedora 17 - squashfs errors
> > >>>>>>>>>>>running on already installed f17 seems ok.
> > >>>>>>>>>>>
> > >>>>>>>>>>>Windows
> > >>>>>>>>>>>-------
> > >>>>>>>>>>>-W7 - install error:
> > >>>>>>>>>>>
> > >>>>>>>>>>>"A required cd/dvd device driver is missing. If you have a
> > >>>>>>>>>>>driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> > >>>>>>>>>>>"
> > >>>>>>>>>>>
> > >>>>>>>>>>>Related to the new ahci controller, since if I go back to an
> > >>>>>>>>>>>ide conroller it keeps going (albeit the install is *very* slow).
> > >>>>>>>>>>>
> > >>>>>>>>>>>So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> > >>>>>>>>>>>are other ideas.
> > >>>>>>>>>>Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>>Alex
> > >>>>>>>>>>
> > >>>>>>>>>>
> > >>>>>>>>>Yes, adding the ahci controller to -M pc, I see a disk drive and the
> > >>>>>>>>>controller show up in the device manager. I read in some of the ahci
> > >>>>>>>>>commit messages that the cdrom device didn't show up. Did cdrom ever
> > >>>>>>>>>work with ahci?
> > >>>>>>>>It did on Linux at least, yes. Does it work on Linux for you?
> > >>>>>>>>
> > >>>>>>>I meant did a cdrom on the ahci controller configure on windows?
> > >>>>>>>
> > >>>>>>>Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
> > >>>>>>>my above test results. (ich9-ahci is the default controller for q35).
> > >>>>>>Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
> > >>>>>>
> > >>>>>I have time to look at it (I'm trying to get q35 working on as many os's
> > >>>>>as possible), but I'm far from an expert on ahci. So if you had some
> > >>>>>time to look at it, that would be great. My q35 trees are at:
> > >>>>Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.
> > >>>>
> > >>>>>git://github.com/jibaron/q35-qemu.git
> > >>>>>git://github.com/jibaron/q35-seabios.git
> > >>>>>
> > >>>>>With a cmd line such as:
> > >>>>>
> > >>>>>/usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> > >>>>>-hda ./f16.img --enable-kvm  -bios<path>/q35-seabios/out/bios.bin
> > >>>>>-acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
> > >>>>I suppose you mean something that actually does -cdrom?
> > >>>oops. yes. here's an example:
> > >>>
> > >>>/usr/local/bin/qemu-system-x86_64 -boot c -name  "w7" -m 6G -smp 4 -M
> > >>>pc_q35 -cdrom
> > >>>/images/isos/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
> > >>>-hda /images/w7-q35.img  -vnc :5 --enable-kvm -bios
> > >>>/root/seabios/seabios/out/bios.bin -acpitable
> > >>>file=/root/seabios/seabios/out/q35-acpi-dsdt.aml -monitor stdio
> > >>>
> > >>>>>The error I run into is:
> > >>>>>
> > >>>>>"A required cd/dvd device driver is missing. If you have a
> > >>>>>driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> > >>>>>"
> > >>>>Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).
> > >>>>
> > >>>I've posted a log at: http://people.redhat.com/~jbaron/qemu/log
> > >>>
> > >>>Created with the debug patch below.
> > >>This log is using ATA for the disk as well, heavily cluttering the log. Please use virtio for the disk so we can isolate the commands that actually go to the cdrom.
> > >>
> > >>
> > >>Alex
> > >>
> > >>
> > >Log is still pretty large. But hopefully this one is more useful:
> > >
> > >http://people.redhat.com/~jbaron//qemu/windows-ahci-boot-virtio-disk
> > >
> > >Please let me know if anything else would be helpful.
> > 
> > Hrm. I can't see anything obviously wrong. The CD-ROM gets a few
> > ATAPI commands, happily processes them. And after the last one, it
> > suddenly gets a reset request (which usually indicates that
> > something went wrong) and then there's silence.
> > 
> > Who sends which commands? Are some of the commands maybe coming from
> > SeaBIOS? Could you please disable AHCI support in SeaBIOS for now
> > and check if anything substantially changes?
> > 
> > 
> > Alex
> > 
> > 
> 
> After fumbling around with this for a while on windows 7, I have also
> found that the current ahci/atapi crdrom code on piix appears to be
> buggy. Verifying a cdrom disk, or trying to boot off one yields i/o
> errors. I'm starting to dig into these now, but this can be re-produced
> outside the scope of q35.
> 
Also hibernating Windows8 on ahci does not work. I haven't dug deep, but
it looks like it fail to save the hibernation image.

--
			Gleb.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-05 15:07                     ` Alexander Graf
@ 2012-07-20 15:27                       ` Jason Baron
  2012-07-22  6:48                         ` Gleb Natapov
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-20 15:27 UTC (permalink / raw)
  To: Alexander Graf
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony

On Thu, Jul 05, 2012 at 05:07:43PM +0200, Alexander Graf wrote:
> On 07/05/2012 04:06 PM, Jason Baron wrote:
> >On Wed, Jul 04, 2012 at 10:33:18AM +0200, Alexander Graf wrote:
> >>On 04.07.2012, at 03:29, Jason Baron wrote:
> >>
> >>>On Tue, Jul 03, 2012 at 10:54:37PM +0200, Alexander Graf wrote:
> >>>>On 03.07.2012, at 22:37, Jason Baron wrote:
> >>>>
> >>>>>On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
> >>>>>>On 03.07.2012, at 20:46, Jason Baron wrote:
> >>>>>>
> >>>>>>>On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
> >>>>>>>>On 03.07.2012, at 20:38, Jason Baron wrote:
> >>>>>>>>
> >>>>>>>>>On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> >>>>>>>>>>On 03.07.2012, at 18:16, Jason Baron wrote:
> >>>>>>>>>>
> >>>>>>>>>>>Hi,
> >>>>>>>>>>>
> >>>>>>>>>>>Update on q35 testing with various os's.
> >>>>>>>>>>>
> >>>>>>>>>>>Linux
> >>>>>>>>>>>-----
> >>>>>>>>>>>-RHEL6.3 installs + runs
> >>>>>>>>>>>-Fedora 16 install + runs
> >>>>>>>>>>>-Fedora 17 - squashfs errors
> >>>>>>>>>>>running on already installed f17 seems ok.
> >>>>>>>>>>>
> >>>>>>>>>>>Windows
> >>>>>>>>>>>-------
> >>>>>>>>>>>-W7 - install error:
> >>>>>>>>>>>
> >>>>>>>>>>>"A required cd/dvd device driver is missing. If you have a
> >>>>>>>>>>>driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>>>>>>>>>>"
> >>>>>>>>>>>
> >>>>>>>>>>>Related to the new ahci controller, since if I go back to an
> >>>>>>>>>>>ide conroller it keeps going (albeit the install is *very* slow).
> >>>>>>>>>>>
> >>>>>>>>>>>So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> >>>>>>>>>>>are other ideas.
> >>>>>>>>>>Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>Alex
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>Yes, adding the ahci controller to -M pc, I see a disk drive and the
> >>>>>>>>>controller show up in the device manager. I read in some of the ahci
> >>>>>>>>>commit messages that the cdrom device didn't show up. Did cdrom ever
> >>>>>>>>>work with ahci?
> >>>>>>>>It did on Linux at least, yes. Does it work on Linux for you?
> >>>>>>>>
> >>>>>>>I meant did a cdrom on the ahci controller configure on windows?
> >>>>>>>
> >>>>>>>Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
> >>>>>>>my above test results. (ich9-ahci is the default controller for q35).
> >>>>>>Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
> >>>>>>
> >>>>>I have time to look at it (I'm trying to get q35 working on as many os's
> >>>>>as possible), but I'm far from an expert on ahci. So if you had some
> >>>>>time to look at it, that would be great. My q35 trees are at:
> >>>>Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.
> >>>>
> >>>>>git://github.com/jibaron/q35-qemu.git
> >>>>>git://github.com/jibaron/q35-seabios.git
> >>>>>
> >>>>>With a cmd line such as:
> >>>>>
> >>>>>/usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> >>>>>-hda ./f16.img --enable-kvm  -bios<path>/q35-seabios/out/bios.bin
> >>>>>-acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
> >>>>I suppose you mean something that actually does -cdrom?
> >>>oops. yes. here's an example:
> >>>
> >>>/usr/local/bin/qemu-system-x86_64 -boot c -name  "w7" -m 6G -smp 4 -M
> >>>pc_q35 -cdrom
> >>>/images/isos/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
> >>>-hda /images/w7-q35.img  -vnc :5 --enable-kvm -bios
> >>>/root/seabios/seabios/out/bios.bin -acpitable
> >>>file=/root/seabios/seabios/out/q35-acpi-dsdt.aml -monitor stdio
> >>>
> >>>>>The error I run into is:
> >>>>>
> >>>>>"A required cd/dvd device driver is missing. If you have a
> >>>>>driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>>>>"
> >>>>Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).
> >>>>
> >>>I've posted a log at: http://people.redhat.com/~jbaron/qemu/log
> >>>
> >>>Created with the debug patch below.
> >>This log is using ATA for the disk as well, heavily cluttering the log. Please use virtio for the disk so we can isolate the commands that actually go to the cdrom.
> >>
> >>
> >>Alex
> >>
> >>
> >Log is still pretty large. But hopefully this one is more useful:
> >
> >http://people.redhat.com/~jbaron//qemu/windows-ahci-boot-virtio-disk
> >
> >Please let me know if anything else would be helpful.
> 
> Hrm. I can't see anything obviously wrong. The CD-ROM gets a few
> ATAPI commands, happily processes them. And after the last one, it
> suddenly gets a reset request (which usually indicates that
> something went wrong) and then there's silence.
> 
> Who sends which commands? Are some of the commands maybe coming from
> SeaBIOS? Could you please disable AHCI support in SeaBIOS for now
> and check if anything substantially changes?
> 
> 
> Alex
> 
> 

After fumbling around with this for a while on windows 7, I have also
found that the current ahci/atapi crdrom code on piix appears to be
buggy. Verifying a cdrom disk, or trying to boot off one yields i/o
errors. I'm starting to dig into these now, but this can be re-produced
outside the scope of q35.

Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-05 14:06                   ` Jason Baron
@ 2012-07-05 15:07                     ` Alexander Graf
  2012-07-20 15:27                       ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Graf @ 2012-07-05 15:07 UTC (permalink / raw)
  To: Jason Baron
  Cc: mst, jan.kiszka, juzhang, qemu-devel, yamahata, alex.williamson, anthony

On 07/05/2012 04:06 PM, Jason Baron wrote:
> On Wed, Jul 04, 2012 at 10:33:18AM +0200, Alexander Graf wrote:
>> On 04.07.2012, at 03:29, Jason Baron wrote:
>>
>>> On Tue, Jul 03, 2012 at 10:54:37PM +0200, Alexander Graf wrote:
>>>> On 03.07.2012, at 22:37, Jason Baron wrote:
>>>>
>>>>> On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
>>>>>> On 03.07.2012, at 20:46, Jason Baron wrote:
>>>>>>
>>>>>>> On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
>>>>>>>> On 03.07.2012, at 20:38, Jason Baron wrote:
>>>>>>>>
>>>>>>>>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
>>>>>>>>>> On 03.07.2012, at 18:16, Jason Baron wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> Update on q35 testing with various os's.
>>>>>>>>>>>
>>>>>>>>>>> Linux
>>>>>>>>>>> -----
>>>>>>>>>>> -RHEL6.3 installs + runs
>>>>>>>>>>> -Fedora 16 install + runs
>>>>>>>>>>> -Fedora 17 - squashfs errors
>>>>>>>>>>> running on already installed f17 seems ok.
>>>>>>>>>>>
>>>>>>>>>>> Windows
>>>>>>>>>>> -------
>>>>>>>>>>> -W7 - install error:
>>>>>>>>>>>
>>>>>>>>>>> "A required cd/dvd device driver is missing. If you have a
>>>>>>>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>>>>>>>>>> "
>>>>>>>>>>>
>>>>>>>>>>> Related to the new ahci controller, since if I go back to an
>>>>>>>>>>> ide conroller it keeps going (albeit the install is *very* slow).
>>>>>>>>>>>
>>>>>>>>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
>>>>>>>>>>> are other ideas.
>>>>>>>>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Alex
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
>>>>>>>>> controller show up in the device manager. I read in some of the ahci
>>>>>>>>> commit messages that the cdrom device didn't show up. Did cdrom ever
>>>>>>>>> work with ahci?
>>>>>>>> It did on Linux at least, yes. Does it work on Linux for you?
>>>>>>>>
>>>>>>> I meant did a cdrom on the ahci controller configure on windows?
>>>>>>>
>>>>>>> Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
>>>>>>> my above test results. (ich9-ahci is the default controller for q35).
>>>>>> Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
>>>>>>
>>>>> I have time to look at it (I'm trying to get q35 working on as many os's
>>>>> as possible), but I'm far from an expert on ahci. So if you had some
>>>>> time to look at it, that would be great. My q35 trees are at:
>>>> Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.
>>>>
>>>>> git://github.com/jibaron/q35-qemu.git
>>>>> git://github.com/jibaron/q35-seabios.git
>>>>>
>>>>> With a cmd line such as:
>>>>>
>>>>> /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
>>>>> -hda ./f16.img --enable-kvm  -bios<path>/q35-seabios/out/bios.bin
>>>>> -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
>>>> I suppose you mean something that actually does -cdrom?
>>> oops. yes. here's an example:
>>>
>>> /usr/local/bin/qemu-system-x86_64 -boot c -name  "w7" -m 6G -smp 4 -M
>>> pc_q35 -cdrom
>>> /images/isos/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
>>> -hda /images/w7-q35.img  -vnc :5 --enable-kvm -bios
>>> /root/seabios/seabios/out/bios.bin -acpitable
>>> file=/root/seabios/seabios/out/q35-acpi-dsdt.aml -monitor stdio
>>>
>>>>> The error I run into is:
>>>>>
>>>>> "A required cd/dvd device driver is missing. If you have a
>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>>>> "
>>>> Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).
>>>>
>>> I've posted a log at: http://people.redhat.com/~jbaron/qemu/log
>>>
>>> Created with the debug patch below.
>> This log is using ATA for the disk as well, heavily cluttering the log. Please use virtio for the disk so we can isolate the commands that actually go to the cdrom.
>>
>>
>> Alex
>>
>>
> Log is still pretty large. But hopefully this one is more useful:
>
> http://people.redhat.com/~jbaron//qemu/windows-ahci-boot-virtio-disk
>
> Please let me know if anything else would be helpful.

Hrm. I can't see anything obviously wrong. The CD-ROM gets a few ATAPI 
commands, happily processes them. And after the last one, it suddenly 
gets a reset request (which usually indicates that something went wrong) 
and then there's silence.

Who sends which commands? Are some of the commands maybe coming from 
SeaBIOS? Could you please disable AHCI support in SeaBIOS for now and 
check if anything substantially changes?


Alex

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-04  8:33                 ` Alexander Graf
@ 2012-07-05 14:06                   ` Jason Baron
  2012-07-05 15:07                     ` Alexander Graf
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-05 14:06 UTC (permalink / raw)
  To: Alexander Graf
  Cc: mst, jan.kiszka, juzhang, qemu-devel, yamahata, alex.williamson, anthony

On Wed, Jul 04, 2012 at 10:33:18AM +0200, Alexander Graf wrote:
> On 04.07.2012, at 03:29, Jason Baron wrote:
> 
> > On Tue, Jul 03, 2012 at 10:54:37PM +0200, Alexander Graf wrote:
> >> On 03.07.2012, at 22:37, Jason Baron wrote:
> >> 
> >>> On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
> >>>> On 03.07.2012, at 20:46, Jason Baron wrote:
> >>>> 
> >>>>> On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
> >>>>>> On 03.07.2012, at 20:38, Jason Baron wrote:
> >>>>>> 
> >>>>>>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> >>>>>>>> On 03.07.2012, at 18:16, Jason Baron wrote:
> >>>>>>>> 
> >>>>>>>>> Hi,
> >>>>>>>>> 
> >>>>>>>>> Update on q35 testing with various os's.
> >>>>>>>>> 
> >>>>>>>>> Linux
> >>>>>>>>> -----
> >>>>>>>>> -RHEL6.3 installs + runs 
> >>>>>>>>> -Fedora 16 install + runs
> >>>>>>>>> -Fedora 17 - squashfs errors 
> >>>>>>>>> running on already installed f17 seems ok.
> >>>>>>>>> 
> >>>>>>>>> Windows
> >>>>>>>>> -------
> >>>>>>>>> -W7 - install error:
> >>>>>>>>> 
> >>>>>>>>> "A required cd/dvd device driver is missing. If you have a
> >>>>>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>>>>>>>> "
> >>>>>>>>> 
> >>>>>>>>> Related to the new ahci controller, since if I go back to an
> >>>>>>>>> ide conroller it keeps going (albeit the install is *very* slow).
> >>>>>>>>> 
> >>>>>>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> >>>>>>>>> are other ideas.
> >>>>>>>> 
> >>>>>>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> >>>>>>>> 
> >>>>>>>> 
> >>>>>>>> Alex
> >>>>>>>> 
> >>>>>>>> 
> >>>>>>> 
> >>>>>>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
> >>>>>>> controller show up in the device manager. I read in some of the ahci
> >>>>>>> commit messages that the cdrom device didn't show up. Did cdrom ever
> >>>>>>> work with ahci?
> >>>>>> 
> >>>>>> It did on Linux at least, yes. Does it work on Linux for you?
> >>>>>> 
> >>>>> 
> >>>>> I meant did a cdrom on the ahci controller configure on windows?
> >>>>> 
> >>>>> Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
> >>>>> my above test results. (ich9-ahci is the default controller for q35).
> >>>> 
> >>>> Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
> >>>> 
> >>> 
> >>> I have time to look at it (I'm trying to get q35 working on as many os's
> >>> as possible), but I'm far from an expert on ahci. So if you had some
> >>> time to look at it, that would be great. My q35 trees are at:
> >> 
> >> Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.
> >> 
> >>> git://github.com/jibaron/q35-qemu.git
> >>> git://github.com/jibaron/q35-seabios.git
> >>> 
> >>> With a cmd line such as:
> >>> 
> >>> /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> >>> -hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
> >>> -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
> >> 
> >> I suppose you mean something that actually does -cdrom?
> > 
> > oops. yes. here's an example:
> > 
> > /usr/local/bin/qemu-system-x86_64 -boot c -name  "w7" -m 6G -smp 4 -M
> > pc_q35 -cdrom
> > /images/isos/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
> > -hda /images/w7-q35.img  -vnc :5 --enable-kvm -bios
> > /root/seabios/seabios/out/bios.bin -acpitable
> > file=/root/seabios/seabios/out/q35-acpi-dsdt.aml -monitor stdio
> > 
> >> 
> >>> The error I run into is:
> >>> 
> >>> "A required cd/dvd device driver is missing. If you have a
> >>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>> "
> >> 
> >> Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).
> >> 
> > 
> > I've posted a log at: http://people.redhat.com/~jbaron/qemu/log
> > 
> > Created with the debug patch below.
> 
> This log is using ATA for the disk as well, heavily cluttering the log. Please use virtio for the disk so we can isolate the commands that actually go to the cdrom.
> 
> 
> Alex
> 
> 

Log is still pretty large. But hopefully this one is more useful:

http://people.redhat.com/~jbaron//qemu/windows-ahci-boot-virtio-disk

Please let me know if anything else would be helpful.

Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-04  1:29               ` Jason Baron
@ 2012-07-04  8:33                 ` Alexander Graf
  2012-07-05 14:06                   ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Graf @ 2012-07-04  8:33 UTC (permalink / raw)
  To: Jason Baron
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony


On 04.07.2012, at 03:29, Jason Baron wrote:

> On Tue, Jul 03, 2012 at 10:54:37PM +0200, Alexander Graf wrote:
>> On 03.07.2012, at 22:37, Jason Baron wrote:
>> 
>>> On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
>>>> On 03.07.2012, at 20:46, Jason Baron wrote:
>>>> 
>>>>> On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
>>>>>> On 03.07.2012, at 20:38, Jason Baron wrote:
>>>>>> 
>>>>>>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
>>>>>>>> On 03.07.2012, at 18:16, Jason Baron wrote:
>>>>>>>> 
>>>>>>>>> Hi,
>>>>>>>>> 
>>>>>>>>> Update on q35 testing with various os's.
>>>>>>>>> 
>>>>>>>>> Linux
>>>>>>>>> -----
>>>>>>>>> -RHEL6.3 installs + runs 
>>>>>>>>> -Fedora 16 install + runs
>>>>>>>>> -Fedora 17 - squashfs errors 
>>>>>>>>> running on already installed f17 seems ok.
>>>>>>>>> 
>>>>>>>>> Windows
>>>>>>>>> -------
>>>>>>>>> -W7 - install error:
>>>>>>>>> 
>>>>>>>>> "A required cd/dvd device driver is missing. If you have a
>>>>>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>>>>>>>> "
>>>>>>>>> 
>>>>>>>>> Related to the new ahci controller, since if I go back to an
>>>>>>>>> ide conroller it keeps going (albeit the install is *very* slow).
>>>>>>>>> 
>>>>>>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
>>>>>>>>> are other ideas.
>>>>>>>> 
>>>>>>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Alex
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
>>>>>>> controller show up in the device manager. I read in some of the ahci
>>>>>>> commit messages that the cdrom device didn't show up. Did cdrom ever
>>>>>>> work with ahci?
>>>>>> 
>>>>>> It did on Linux at least, yes. Does it work on Linux for you?
>>>>>> 
>>>>> 
>>>>> I meant did a cdrom on the ahci controller configure on windows?
>>>>> 
>>>>> Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
>>>>> my above test results. (ich9-ahci is the default controller for q35).
>>>> 
>>>> Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
>>>> 
>>> 
>>> I have time to look at it (I'm trying to get q35 working on as many os's
>>> as possible), but I'm far from an expert on ahci. So if you had some
>>> time to look at it, that would be great. My q35 trees are at:
>> 
>> Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.
>> 
>>> git://github.com/jibaron/q35-qemu.git
>>> git://github.com/jibaron/q35-seabios.git
>>> 
>>> With a cmd line such as:
>>> 
>>> /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
>>> -hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
>>> -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
>> 
>> I suppose you mean something that actually does -cdrom?
> 
> oops. yes. here's an example:
> 
> /usr/local/bin/qemu-system-x86_64 -boot c -name  "w7" -m 6G -smp 4 -M
> pc_q35 -cdrom
> /images/isos/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
> -hda /images/w7-q35.img  -vnc :5 --enable-kvm -bios
> /root/seabios/seabios/out/bios.bin -acpitable
> file=/root/seabios/seabios/out/q35-acpi-dsdt.aml -monitor stdio
> 
>> 
>>> The error I run into is:
>>> 
>>> "A required cd/dvd device driver is missing. If you have a
>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>> "
>> 
>> Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).
>> 
> 
> I've posted a log at: http://people.redhat.com/~jbaron/qemu/log
> 
> Created with the debug patch below.

This log is using ATA for the disk as well, heavily cluttering the log. Please use virtio for the disk so we can isolate the commands that actually go to the cdrom.


Alex

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 20:54             ` Alexander Graf
@ 2012-07-04  1:29               ` Jason Baron
  2012-07-04  8:33                 ` Alexander Graf
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-04  1:29 UTC (permalink / raw)
  To: Alexander Graf
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony

On Tue, Jul 03, 2012 at 10:54:37PM +0200, Alexander Graf wrote:
> On 03.07.2012, at 22:37, Jason Baron wrote:
> 
> > On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
> >> On 03.07.2012, at 20:46, Jason Baron wrote:
> >> 
> >>> On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
> >>>> On 03.07.2012, at 20:38, Jason Baron wrote:
> >>>> 
> >>>>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> >>>>>> On 03.07.2012, at 18:16, Jason Baron wrote:
> >>>>>> 
> >>>>>>> Hi,
> >>>>>>> 
> >>>>>>> Update on q35 testing with various os's.
> >>>>>>> 
> >>>>>>> Linux
> >>>>>>> -----
> >>>>>>> -RHEL6.3 installs + runs 
> >>>>>>> -Fedora 16 install + runs
> >>>>>>> -Fedora 17 - squashfs errors 
> >>>>>>> running on already installed f17 seems ok.
> >>>>>>> 
> >>>>>>> Windows
> >>>>>>> -------
> >>>>>>> -W7 - install error:
> >>>>>>> 
> >>>>>>> "A required cd/dvd device driver is missing. If you have a
> >>>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>>>>>> "
> >>>>>>> 
> >>>>>>> Related to the new ahci controller, since if I go back to an
> >>>>>>> ide conroller it keeps going (albeit the install is *very* slow).
> >>>>>>> 
> >>>>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> >>>>>>> are other ideas.
> >>>>>> 
> >>>>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> >>>>>> 
> >>>>>> 
> >>>>>> Alex
> >>>>>> 
> >>>>>> 
> >>>>> 
> >>>>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
> >>>>> controller show up in the device manager. I read in some of the ahci
> >>>>> commit messages that the cdrom device didn't show up. Did cdrom ever
> >>>>> work with ahci?
> >>>> 
> >>>> It did on Linux at least, yes. Does it work on Linux for you?
> >>>> 
> >>> 
> >>> I meant did a cdrom on the ahci controller configure on windows?
> >>> 
> >>> Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
> >>> my above test results. (ich9-ahci is the default controller for q35).
> >> 
> >> Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
> >> 
> > 
> > I have time to look at it (I'm trying to get q35 working on as many os's
> > as possible), but I'm far from an expert on ahci. So if you had some
> > time to look at it, that would be great. My q35 trees are at:
> 
> Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.
> 
> > git://github.com/jibaron/q35-qemu.git
> > git://github.com/jibaron/q35-seabios.git
> > 
> > With a cmd line such as:
> > 
> > /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> > -hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
> > -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
> 
> I suppose you mean something that actually does -cdrom?

oops. yes. here's an example:

/usr/local/bin/qemu-system-x86_64 -boot c -name  "w7" -m 6G -smp 4 -M
pc_q35 -cdrom
/images/isos/en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso
-hda /images/w7-q35.img  -vnc :5 --enable-kvm -bios
/root/seabios/seabios/out/bios.bin -acpitable
file=/root/seabios/seabios/out/q35-acpi-dsdt.aml -monitor stdio

> 
> > The error I run into is:
> > 
> > "A required cd/dvd device driver is missing. If you have a
> > driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> > "
> 
> Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).
> 

I've posted a log at: http://people.redhat.com/~jbaron/qemu/log

Created with the debug patch below.

Thanks,

-Jason

diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index 1e6cb82..ec75e45 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -34,7 +34,7 @@
 #include <hw/ide/pci.h>
 #include <hw/ide/ahci.h>
 
-/* #define DEBUG_AHCI */
+#define DEBUG_AHCI
 
 #ifdef DEBUG_AHCI
 #define DPRINTF(port, fmt, ...) \
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index f8a027d..ac1503b 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -14,9 +14,9 @@
 #include "hw/scsi-defs.h"
 
 /* debug IDE devices */
-//#define DEBUG_IDE
-//#define DEBUG_IDE_ATAPI
-//#define DEBUG_AIO
+#define DEBUG_IDE
+#define DEBUG_IDE_ATAPI
+#define DEBUG_AIO
 #define USE_DMA_CDROM
 
 typedef struct IDEBus IDEBus;

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 20:37           ` Jason Baron
@ 2012-07-03 20:54             ` Alexander Graf
  2012-07-04  1:29               ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Graf @ 2012-07-03 20:54 UTC (permalink / raw)
  To: Jason Baron
  Cc: mst, jan.kiszka, juzhang, qemu-devel, yamahata, alex.williamson, anthony


On 03.07.2012, at 22:37, Jason Baron wrote:

> On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
>> On 03.07.2012, at 20:46, Jason Baron wrote:
>> 
>>> On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
>>>> On 03.07.2012, at 20:38, Jason Baron wrote:
>>>> 
>>>>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
>>>>>> On 03.07.2012, at 18:16, Jason Baron wrote:
>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> Update on q35 testing with various os's.
>>>>>>> 
>>>>>>> Linux
>>>>>>> -----
>>>>>>> -RHEL6.3 installs + runs 
>>>>>>> -Fedora 16 install + runs
>>>>>>> -Fedora 17 - squashfs errors 
>>>>>>> running on already installed f17 seems ok.
>>>>>>> 
>>>>>>> Windows
>>>>>>> -------
>>>>>>> -W7 - install error:
>>>>>>> 
>>>>>>> "A required cd/dvd device driver is missing. If you have a
>>>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>>>>>> "
>>>>>>> 
>>>>>>> Related to the new ahci controller, since if I go back to an
>>>>>>> ide conroller it keeps going (albeit the install is *very* slow).
>>>>>>> 
>>>>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
>>>>>>> are other ideas.
>>>>>> 
>>>>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
>>>>>> 
>>>>>> 
>>>>>> Alex
>>>>>> 
>>>>>> 
>>>>> 
>>>>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
>>>>> controller show up in the device manager. I read in some of the ahci
>>>>> commit messages that the cdrom device didn't show up. Did cdrom ever
>>>>> work with ahci?
>>>> 
>>>> It did on Linux at least, yes. Does it work on Linux for you?
>>>> 
>>> 
>>> I meant did a cdrom on the ahci controller configure on windows?
>>> 
>>> Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
>>> my above test results. (ich9-ahci is the default controller for q35).
>> 
>> Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
>> 
> 
> I have time to look at it (I'm trying to get q35 working on as many os's
> as possible), but I'm far from an expert on ahci. So if you had some
> time to look at it, that would be great. My q35 trees are at:

Not sure how quickly I can get around to it. I still have quite a bunch of other stuff on my plate atm.

> git://github.com/jibaron/q35-qemu.git
> git://github.com/jibaron/q35-seabios.git
> 
> With a cmd line such as:
> 
> /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
> -hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
> -acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio

I suppose you mean something that actually does -cdrom?

> The error I run into is:
> 
> "A required cd/dvd device driver is missing. If you have a
> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> "

Well, that only tells us that it couldn't find its own CD drive. The question is why. Some ATA logs would be nice here :).


Alex

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 18:52         ` Alexander Graf
@ 2012-07-03 20:37           ` Jason Baron
  2012-07-03 20:54             ` Alexander Graf
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-03 20:37 UTC (permalink / raw)
  To: Alexander Graf
  Cc: mst, jan.kiszka, juzhang, qemu-devel, yamahata, alex.williamson, anthony

On Tue, Jul 03, 2012 at 08:52:50PM +0200, Alexander Graf wrote:
> On 03.07.2012, at 20:46, Jason Baron wrote:
> 
> > On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
> >> On 03.07.2012, at 20:38, Jason Baron wrote:
> >> 
> >>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> >>>> On 03.07.2012, at 18:16, Jason Baron wrote:
> >>>> 
> >>>>> Hi,
> >>>>> 
> >>>>> Update on q35 testing with various os's.
> >>>>> 
> >>>>> Linux
> >>>>> -----
> >>>>> -RHEL6.3 installs + runs 
> >>>>> -Fedora 16 install + runs
> >>>>> -Fedora 17 - squashfs errors 
> >>>>> running on already installed f17 seems ok.
> >>>>> 
> >>>>> Windows
> >>>>> -------
> >>>>> -W7 - install error:
> >>>>> 
> >>>>> "A required cd/dvd device driver is missing. If you have a
> >>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>>>> "
> >>>>> 
> >>>>> Related to the new ahci controller, since if I go back to an
> >>>>> ide conroller it keeps going (albeit the install is *very* slow).
> >>>>> 
> >>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> >>>>> are other ideas.
> >>>> 
> >>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> >>>> 
> >>>> 
> >>>> Alex
> >>>> 
> >>>> 
> >>> 
> >>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
> >>> controller show up in the device manager. I read in some of the ahci
> >>> commit messages that the cdrom device didn't show up. Did cdrom ever
> >>> work with ahci?
> >> 
> >> It did on Linux at least, yes. Does it work on Linux for you?
> >> 
> > 
> > I meant did a cdrom on the ahci controller configure on windows?
> > 
> > Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
> > my above test results. (ich9-ahci is the default controller for q35).
> 
> Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?
> 

I have time to look at it (I'm trying to get q35 working on as many os's
as possible), but I'm far from an expert on ahci. So if you had some
time to look at it, that would be great. My q35 trees are at:

git://github.com/jibaron/q35-qemu.git
git://github.com/jibaron/q35-seabios.git

With a cmd line such as:

 /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
-hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
-acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio

The error I run into is:

"A required cd/dvd device driver is missing. If you have a
driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
"

> There are a bunch of debug #define's in the ide-core and ahci code that should be able to point you to where it starts failing. It's probably easiest to take it slow and find a way to only have the cdrom attached to ahci. Otherwise the debug output will be full of disk stuff :).
> 

Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 18:46       ` Jason Baron
@ 2012-07-03 18:52         ` Alexander Graf
  2012-07-03 20:37           ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Graf @ 2012-07-03 18:52 UTC (permalink / raw)
  To: Jason Baron
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony


On 03.07.2012, at 20:46, Jason Baron wrote:

> On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
>> On 03.07.2012, at 20:38, Jason Baron wrote:
>> 
>>> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
>>>> On 03.07.2012, at 18:16, Jason Baron wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> Update on q35 testing with various os's.
>>>>> 
>>>>> Linux
>>>>> -----
>>>>> -RHEL6.3 installs + runs 
>>>>> -Fedora 16 install + runs
>>>>> -Fedora 17 - squashfs errors 
>>>>> running on already installed f17 seems ok.
>>>>> 
>>>>> Windows
>>>>> -------
>>>>> -W7 - install error:
>>>>> 
>>>>> "A required cd/dvd device driver is missing. If you have a
>>>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>>>> "
>>>>> 
>>>>> Related to the new ahci controller, since if I go back to an
>>>>> ide conroller it keeps going (albeit the install is *very* slow).
>>>>> 
>>>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
>>>>> are other ideas.
>>>> 
>>>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
>>>> 
>>>> 
>>>> Alex
>>>> 
>>>> 
>>> 
>>> Yes, adding the ahci controller to -M pc, I see a disk drive and the
>>> controller show up in the device manager. I read in some of the ahci
>>> commit messages that the cdrom device didn't show up. Did cdrom ever
>>> work with ahci?
>> 
>> It did on Linux at least, yes. Does it work on Linux for you?
>> 
> 
> I meant did a cdrom on the ahci controller configure on windows?
> 
> Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
> my above test results. (ich9-ahci is the default controller for q35).

Ah, good. I don't remember tbh. But I suppose since it doesn't work for you, it's broken :). Do you have time to look into it?

There are a bunch of debug #define's in the ide-core and ahci code that should be able to point you to where it starts failing. It's probably easiest to take it slow and find a way to only have the cdrom attached to ahci. Otherwise the debug output will be full of disk stuff :).


Alex

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 18:41     ` Alexander Graf
@ 2012-07-03 18:46       ` Jason Baron
  2012-07-03 18:52         ` Alexander Graf
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-03 18:46 UTC (permalink / raw)
  To: Alexander Graf
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony

On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote:
> On 03.07.2012, at 20:38, Jason Baron wrote:
> 
> > On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> >> On 03.07.2012, at 18:16, Jason Baron wrote:
> >> 
> >>> Hi,
> >>> 
> >>> Update on q35 testing with various os's.
> >>> 
> >>> Linux
> >>> -----
> >>> -RHEL6.3 installs + runs 
> >>> -Fedora 16 install + runs
> >>> -Fedora 17 - squashfs errors 
> >>>  running on already installed f17 seems ok.
> >>> 
> >>> Windows
> >>> -------
> >>> -W7 - install error:
> >>> 
> >>> "A required cd/dvd device driver is missing. If you have a
> >>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> >>> "
> >>> 
> >>> Related to the new ahci controller, since if I go back to an
> >>> ide conroller it keeps going (albeit the install is *very* slow).
> >>> 
> >>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> >>> are other ideas.
> >> 
> >> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> >> 
> >> 
> >> Alex
> >> 
> >> 
> > 
> > Yes, adding the ahci controller to -M pc, I see a disk drive and the
> > controller show up in the device manager. I read in some of the ahci
> > commit messages that the cdrom device didn't show up. Did cdrom ever
> > work with ahci?
> 
> It did on Linux at least, yes. Does it work on Linux for you?
> 

I meant did a cdrom on the ahci controller configure on windows?

Yes, Linux seems to be happy with the drive and cdrom on the ahci. See
my above test results. (ich9-ahci is the default controller for q35).

Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 18:38   ` Jason Baron
@ 2012-07-03 18:41     ` Alexander Graf
  2012-07-03 18:46       ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Graf @ 2012-07-03 18:41 UTC (permalink / raw)
  To: Jason Baron
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony


On 03.07.2012, at 20:38, Jason Baron wrote:

> On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
>> On 03.07.2012, at 18:16, Jason Baron wrote:
>> 
>>> Hi,
>>> 
>>> Update on q35 testing with various os's.
>>> 
>>> Linux
>>> -----
>>> -RHEL6.3 installs + runs 
>>> -Fedora 16 install + runs
>>> -Fedora 17 - squashfs errors 
>>>  running on already installed f17 seems ok.
>>> 
>>> Windows
>>> -------
>>> -W7 - install error:
>>> 
>>> "A required cd/dvd device driver is missing. If you have a
>>> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
>>> "
>>> 
>>> Related to the new ahci controller, since if I go back to an
>>> ide conroller it keeps going (albeit the install is *very* slow).
>>> 
>>> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
>>> are other ideas.
>> 
>> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
>> 
>> 
>> Alex
>> 
>> 
> 
> Yes, adding the ahci controller to -M pc, I see a disk drive and the
> controller show up in the device manager. I read in some of the ahci
> commit messages that the cdrom device didn't show up. Did cdrom ever
> work with ahci?

It did on Linux at least, yes. Does it work on Linux for you?


Alex

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 18:25 ` Alexander Graf
@ 2012-07-03 18:38   ` Jason Baron
  2012-07-03 18:41     ` Alexander Graf
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-03 18:38 UTC (permalink / raw)
  To: Alexander Graf
  Cc: mst, jan.kiszka, alex.williamson, qemu-devel, yamahata, juzhang, anthony

On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote:
> On 03.07.2012, at 18:16, Jason Baron wrote:
> 
> > Hi,
> > 
> > Update on q35 testing with various os's.
> > 
> > Linux
> > -----
> > -RHEL6.3 installs + runs 
> > -Fedora 16 install + runs
> > -Fedora 17 - squashfs errors 
> >   running on already installed f17 seems ok.
> > 
> > Windows
> > -------
> > -W7 - install error:
> > 
> > "A required cd/dvd device driver is missing. If you have a
> > driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> > "
> > 
> > Related to the new ahci controller, since if I go back to an
> > ide conroller it keeps going (albeit the install is *very* slow).
> > 
> > So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> > are other ideas.
> 
> Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).
> 
> 
> Alex
> 
> 

Yes, adding the ahci controller to -M pc, I see a disk drive and the
controller show up in the device manager. I read in some of the ahci
commit messages that the cdrom device didn't show up. Did cdrom ever
work with ahci?

Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] q35 and ahci
  2012-07-03 16:16 Jason Baron
@ 2012-07-03 18:25 ` Alexander Graf
  2012-07-03 18:38   ` Jason Baron
  0 siblings, 1 reply; 18+ messages in thread
From: Alexander Graf @ 2012-07-03 18:25 UTC (permalink / raw)
  To: Jason Baron
  Cc: mst, jan.kiszka, juzhang, qemu-devel, yamahata, alex.williamson, anthony


On 03.07.2012, at 18:16, Jason Baron wrote:

> Hi,
> 
> Update on q35 testing with various os's.
> 
> Linux
> -----
> -RHEL6.3 installs + runs 
> -Fedora 16 install + runs
> -Fedora 17 - squashfs errors 
>   running on already installed f17 seems ok.
> 
> Windows
> -------
> -W7 - install error:
> 
> "A required cd/dvd device driver is missing. If you have a
> driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
> "
> 
> Related to the new ahci controller, since if I go back to an
> ide conroller it keeps going (albeit the install is *very* slow).
> 
> So I'm wondering if we need an ide compatibility mode? Or perhaps, there
> are other ideas.

Does it work with AHCI and -M pc? It should. Last time I tried it did at least :).


Alex

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] q35 and ahci
@ 2012-07-03 16:16 Jason Baron
  2012-07-03 18:25 ` Alexander Graf
  0 siblings, 1 reply; 18+ messages in thread
From: Jason Baron @ 2012-07-03 16:16 UTC (permalink / raw)
  To: anthony
  Cc: mst, qemu-devel, jan.kiszka, juzhang, agraf, yamahata, alex.williamson

Hi,

Update on q35 testing with various os's.

Linux
-----
-RHEL6.3 installs + runs 
-Fedora 16 install + runs
-Fedora 17 - squashfs errors 
   running on already installed f17 seems ok.

Windows
-------
-W7 - install error:

"A required cd/dvd device driver is missing. If you have a
driver floppy disk, CD, DVD, or USB flash drive, please insert it now.
"

Related to the new ahci controller, since if I go back to an
ide conroller it keeps going (albeit the install is *very* slow).

So I'm wondering if we need an ide compatibility mode? Or perhaps, there
are other ideas.

-Windows 95 - vnc is blank even with an ide controller instead of ahci.
Yamahata reported getting q35 working with windows 95, I think?   

BSD
---
Haven't tried any yet. Any specific versions?


As a remminder here are my trees:

git://github.com/jibaron/q35-qemu.git
git://github.com/jibaron/q35-seabios.git

A basic qemu cmd to start q35, looks like:

$ /usr/local/bin/qemu-system-x86_64  -name "f16" -M pc_q35 -m 1G -smp 4
-hda
./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
-acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio


Thanks,

-Jason

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-07-22  6:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 15:31 [Qemu-devel] q35 and ahci Eric Blake
2012-07-17 15:47 ` Jason Baron
2012-07-17 15:50   ` Daniel P. Berrange
2012-07-18 13:34   ` Gerd Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2012-07-03 16:16 Jason Baron
2012-07-03 18:25 ` Alexander Graf
2012-07-03 18:38   ` Jason Baron
2012-07-03 18:41     ` Alexander Graf
2012-07-03 18:46       ` Jason Baron
2012-07-03 18:52         ` Alexander Graf
2012-07-03 20:37           ` Jason Baron
2012-07-03 20:54             ` Alexander Graf
2012-07-04  1:29               ` Jason Baron
2012-07-04  8:33                 ` Alexander Graf
2012-07-05 14:06                   ` Jason Baron
2012-07-05 15:07                     ` Alexander Graf
2012-07-20 15:27                       ` Jason Baron
2012-07-22  6:48                         ` Gleb Natapov

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.