projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b58495
)
ide pc: Put hard disk info into CMOS only for hard disks
author
Markus Armbruster
<armbru@redhat.com>
Tue, 10 Jul 2012 09:12:51 +0000
(11:12 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:31 +0000
(16:48 +0200)
In particular, don't set disk type and geometry when a CD-ROM on bus
ide.0 has media during CMOS initialization.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/qdev.c
patch
|
blob
|
history
diff --git
a/hw/ide/qdev.c
b/hw/ide/qdev.c
index
f191dd3
..
84097fd
100644
(file)
--- a/
hw/ide/qdev.c
+++ b/
hw/ide/qdev.c
@@
-117,7
+117,7
@@
int ide_get_geometry(BusState *bus, int unit,
{
IDEState *s = &DO_UPCAST(IDEBus, qbus, bus)->ifs[unit];
- if (!s->bs) {
+ if (
s->drive_kind != IDE_HD ||
!s->bs) {
return -1;
}