Skip to contentSkip to conversation

q35 and ahci

Qemu-devel Jason Baron 6 participants 18 messages Jul 3, 2012 – Jul 22, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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

#2 lore raw
Quoted 24 lines · Alexander Graf
Quoted 22 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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).

Quoted 9 lines
Quoted 2 lines

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

#3 lore raw
Quoted 31 lines · Jason Baron
Quoted 30 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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 :).

Quoted 8 lines
Quoted 3 lines

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

#4 lore raw
Quoted 37 lines · Alexander Graf
Quoted 35 lines · Jason Baron
Quoted 33 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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

Quoted 7 lines
Quoted 4 lines

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

#5 lore raw
Quoted 43 lines · Jason Baron
Quoted 42 lines · Alexander Graf
Quoted 39 lines · Jason Baron
Quoted 24 lines · Alexander Graf
Quoted 22 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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).

Quoted 9 lines
Quoted 2 lines

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?

Quoted 7 lines
Quoted 2 lines

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

#6 lore raw
Quoted 48 lines · Alexander Graf
Quoted 46 lines · Jason Baron
Quoted 44 lines · Alexander Graf
Quoted 31 lines · Jason Baron
Quoted 30 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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 :).

Quoted 8 lines
Quoted 3 lines

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?

Quoted 7 lines
Quoted 4 lines

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. "

Quoted 2 lines

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

#7 lore raw
Quoted 54 lines · Jason Baron
Quoted 53 lines · Alexander Graf
Quoted 50 lines · Jason Baron
Quoted 37 lines · Alexander Graf
Quoted 35 lines · Jason Baron
Quoted 33 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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

Quoted 7 lines
Quoted 4 lines

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).

Quoted 6 lines
Quoted 2 lines

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.

Review

Quoted 8 lines

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

(quoted diff) +0 -2
-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?

Quoted 5 lines

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

#8 lore raw
Quoted 68 lines · Alexander Graf
Quoted 54 lines · Jason Baron
Quoted 53 lines · Alexander Graf
Quoted 50 lines · Jason Baron
Quoted 37 lines · Alexander Graf
Quoted 35 lines · Jason Baron
Quoted 33 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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

Quoted 7 lines
Quoted 4 lines

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).

Quoted 6 lines
Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 7 lines

Review

Quoted 5 lines

With a cmd line such as:

/usr/local/bin/qemu-system-x86_64 -name "f16" -M pc_q35 -m 1G -smp 4

(quoted diff) +0 -2
-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

Quoted 9 lines
Quoted 6 lines

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

hw/ide/ahci.c +1 -1
index 1e6cb82..ec75e45 100644
@@ -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, ...) \
hw/ide/internal.h +3 -3
index f8a027d..ac1503b 100644
@@ -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;
#9 lore raw
Quoted 93 lines · Jason Baron
Quoted 68 lines · Alexander Graf
Quoted 54 lines · Jason Baron
Quoted 53 lines · Alexander Graf
Quoted 50 lines · Jason Baron
Quoted 37 lines · Alexander Graf
Quoted 35 lines · Jason Baron
Quoted 33 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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

Quoted 7 lines
Quoted 4 lines

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).

Quoted 6 lines
Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 7 lines

Review

Quoted 5 lines

With a cmd line such as:

/usr/local/bin/qemu-system-x86_64 -name "f16" -M pc_q35 -m 1G -smp 4

(quoted diff) +0 -2
-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

Quoted 7 lines
Quoted 6 lines

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. "

Quoted 6 lines
Quoted 2 lines

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

#10 lore raw
Quoted 98 lines · Alexander Graf
Quoted 96 lines · Jason Baron
Quoted 68 lines · Alexander Graf
Quoted 54 lines · Jason Baron
Quoted 53 lines · Alexander Graf
Quoted 50 lines · Jason Baron
Quoted 37 lines · Alexander Graf
Quoted 35 lines · Jason Baron
Quoted 33 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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

Quoted 7 lines
Quoted 4 lines

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).

Quoted 6 lines
Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 7 lines

Review

Quoted 5 lines

With a cmd line such as:

/usr/local/bin/qemu-system-x86_64 -name "f16" -M pc_q35 -m 1G -smp 4

(quoted diff) +0 -2
-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

Quoted 9 lines
Quoted 6 lines

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 :).

Quoted 10 lines
Quoted 3 lines

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

#11 lore raw
Quoted 93 lines · Jason Baron
Quoted 92 lines · Alexander Graf
Quoted 79 lines · Jason Baron
Quoted 61 lines · Alexander Graf
Quoted 47 lines · Jason Baron
Quoted 46 lines · Alexander Graf
Quoted 44 lines · Jason Baron
Quoted 32 lines · Alexander Graf
Quoted 30 lines · Jason Baron
Quoted 29 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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 :).

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

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?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 6 lines

Review

Quoted 5 lines

With a cmd line such as:

/usr/local/bin/qemu-system-x86_64 -name "f16" -M pc_q35 -m 1G -smp 4

(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines

The error I run into is:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

"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.

Quoted 8 lines
Quoted 3 lines

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

#14 lore raw
In reply to Jason Baron

Review

Quoted 8 lines

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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?

Signature · 2 lines
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#15 lore raw
Quoted 15 lines · Eric Blake

Review

Quoted 8 lines

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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

Quoted 2 lines

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

#16 lore raw
Quoted 28 lines · Jason Baron
Quoted 15 lines · Eric Blake

Review

Quoted 8 lines

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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

Quoted 2 lines

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
(quoted diff) +0 -2
-hda ./f16.img --enable-kvm  -bios <path>/q35-seabios/out/bios.bin
-acpitable file=<path>/q35-seabios/out/q35-acpi-dsdt.aml  -monitor stdio
Quoted 3 lines

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

Signature · 4 lines
|: 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 :|
#17 lore raw
In reply to Jason Baron
Quoted 9 lines

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
(quoted diff) +0 -2
-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

#12 lore raw
In reply to Alexander Graf
Quoted 108 lines · Alexander Graf
Quoted 93 lines · Jason Baron
Quoted 92 lines · Alexander Graf
Quoted 79 lines · Jason Baron
Quoted 61 lines · Alexander Graf
Quoted 47 lines · Jason Baron
Quoted 46 lines · Alexander Graf
Quoted 44 lines · Jason Baron
Quoted 32 lines · Alexander Graf
Quoted 30 lines · Jason Baron
Quoted 29 lines · Alexander Graf
Quoted 19 lines · Jason Baron

Hi,

Update on q35 testing with various os's.

Linux
-----

(quoted diff) +0 -3
-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. "

Quoted 5 lines

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 :).

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

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?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 6 lines

Review

Quoted 5 lines

With a cmd line such as:

/usr/local/bin/qemu-system-x86_64 -name "f16" -M pc_q35 -m 1G -smp 4

(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines

The error I run into is:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

"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.

Quoted 8 lines
Quoted 3 lines

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.

Quoted 8 lines

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

#13 lore raw
Quoted 118 lines · Jason Baron
Quoted 108 lines · Alexander Graf
Quoted 93 lines · Jason Baron
Quoted 92 lines · Alexander Graf
Quoted 79 lines · Jason Baron
Quoted 61 lines · Alexander Graf
Quoted 47 lines · Jason Baron
Quoted 46 lines · Alexander Graf
Quoted 44 lines · Jason Baron
Quoted 32 lines · Alexander Graf
Quoted 30 lines · Jason Baron
Quoted 29 lines · Alexander Graf
Quoted 24 lines · Jason Baron

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 :).

Quoted 9 lines
Quoted 7 lines
Quoted 3 lines

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?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

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.

Quoted 3 lines

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

Quoted 6 lines

Review

Quoted 5 lines

With a cmd line such as:

/usr/local/bin/qemu-system-x86_64 -name "f16" -M pc_q35 -m 1G -smp 4

(quoted diff) +0 -2
-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

Quoted 2 lines
Quoted 2 lines

The error I run into is:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

"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.

Quoted 8 lines
Quoted 3 lines

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.

Quoted 8 lines

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

Quoted 6 lines

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.