Skip to contentSkip to conversation

docs: Minor updates around ide-drive

PATCH Applied Markus Armbruster 4 participants 11 messages May 9, 2017 – May 23, 2017

lore
Share & tools
lore
#0 lore raw

cover docs: Minor updates around ide-drive

Markus Armbruster (2):
docs qemu-doc: Avoid ide-drive, it's deprecated docs/qdev-device-use.txt: update section Default Devices

 docs/bootindex.txt       |  2 +-
 docs/qdev-device-use.txt | 13 +++++++------
 qemu-options.hx          |  2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 docs qemu-doc: Avoid ide-drive, it's deprecated

---
 docs/bootindex.txt       | 2 +-
 docs/qdev-device-use.txt | 4 ++--
 qemu-options.hx          | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
docs/bootindex.txt +1 -1
index b9a8ba1..6937862 100644
@@ -13,7 +13,7 @@ Let's assume we have a QEMU machine with two NICs (virtio, e1000) and two
 disks (IDE, virtio):
 
 qemu -drive file=disk1.img,if=none,id=disk1
-     -device ide-drive,drive=disk1,bootindex=4
+     -device ide-hd,drive=disk1,bootindex=4
      -drive file=disk2.img,if=none,id=disk2
      -device virtio-blk-pci,drive=disk2,bootindex=3
      -netdev type=user,id=net0 -device virtio-net-pci,netdev=net0,bootindex=2
docs/qdev-device-use.txt +2 -2
index b059405..caf779b 100644
@@ -31,8 +31,8 @@ A QEMU block device (drive) has a host and a guest part.
 
 In the general case, the guest device is connected to a controller
 device.  For instance, the IDE controller provides two IDE buses, each
-of which can have up to two ide-drive devices, and each ide-drive
-device is a guest part, and is connected to a host part.
+of which can have up to two devices, and each device is a guest part,
+and is connected to a host part.
 
 Except we sometimes lump controller, bus(es) and drive device(s) all
 together into a single device.  For instance, the ISA floppy
qemu-options.hx +1 -1
index f68829f..37147b3 100644
@@ -224,7 +224,7 @@ STEXI
 Set default value of @var{driver}'s property @var{prop} to @var{value}, e.g.:
 
 @example
-qemu-system-i386 -global ide-drive.physical_block_size=4096 -drive file=file,if=ide,index=0,media=disk
+qemu-system-i386 -global ide-hd.physical_block_size=4096 disk-image.img
 @end example
 
 In particular, you can use this to set driver properties for devices which are 
Signature · 1 line
2.7.4
Reviewed-by on v1 1/2
#2 lore raw

Re: [Qemu-devel] [PATCH 1/2] docs qemu-doc: Avoid ide-drive, it's deprecated

Quoted 42 lines · Markus Armbruster
---
 docs/bootindex.txt       | 2 +-
 docs/qdev-device-use.txt | 4 ++--
 qemu-options.hx          | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
docs/bootindex.txt +1 -1
index b9a8ba1..6937862 100644
@@ -13,7 +13,7 @@ Let's assume we have a QEMU machine with two NICs (virtio, e1000) and two
 disks (IDE, virtio):
 
 qemu -drive file=disk1.img,if=none,id=disk1
-     -device ide-drive,drive=disk1,bootindex=4
+     -device ide-hd,drive=disk1,bootindex=4
      -drive file=disk2.img,if=none,id=disk2
      -device virtio-blk-pci,drive=disk2,bootindex=3
      -netdev type=user,id=net0 -device virtio-net-pci,netdev=net0,bootindex=2
docs/qdev-device-use.txt +2 -2
index b059405..caf779b 100644
@@ -31,8 +31,8 @@ A QEMU block device (drive) has a host and a guest part.
 
 In the general case, the guest device is connected to a controller
 device.  For instance, the IDE controller provides two IDE buses, each
-of which can have up to two ide-drive devices, and each ide-drive
-device is a guest part, and is connected to a host part.
+of which can have up to two devices, and each device is a guest part,
+and is connected to a host part.
 
 Except we sometimes lump controller, bus(es) and drive device(s) all
 together into a single device.  For instance, the ISA floppy
qemu-options.hx +0 -0
index f68829f..37147b3 100644

qemu-options.hx STEXI · line 230

Quoted 8 lines
qemu-options.hx +1 -1
@@ -224,7 +224,7 @@ STEXI
 Set default value of @var{driver}'s property @var{prop} to @var{value}, e.g.:
 
 @example
-qemu-system-i386 -global ide-drive.physical_block_size=4096 -drive file=file,if=ide,index=0,media=disk
+qemu-system-i386 -global ide-hd.physical_block_size=4096 disk-image.img
 @end example
 
 In particular, you can use this to set driver properties for devices which are 
#3 lore raw

PATCH 2/2 docs/qdev-device-use.txt: update section Default Devices

In reply to Markus Armbruster

Resynchronize the table of default device suppressions with vl.c's default_list[].

---
 docs/qdev-device-use.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
docs/qdev-device-use.txt +5 -4
index caf779b..f9f9eaa 100644
@@ -401,12 +401,13 @@ type.
 some DEVNAMEs:
 
     default device      suppressing DEVNAMEs
-    CD-ROM              ide-cd, ide-drive, scsi-cd
-    isa-fdc's driveA    isa-fdc
+    CD-ROM              ide-cd, ide-drive, ide-hd, scsi-cd, scsi-hd
+    isa-fdc's driveA    floppy, isa-fdc
     parallel            isa-parallel
     serial              isa-serial
-    VGA                 VGA, cirrus-vga, vmware-svga
-    virtioconsole       virtio-serial-pci, virtio-serial-s390, virtio-serial
+    VGA                 VGA, cirrus-vga, isa-vga, isa-cirrus-vga,
+                        vmware-svga, qxl-vga, virtio-vga
+    virtioconsole       virtio-serial-pci, virtio-serial
 
 The default NIC is connected to a default part created along with it.
 It is *not* suppressed by configuring a NIC with -device (you may call
Signature · 1 line
2.7.4
Reviewed-by on v1 2/2
#4 lore raw

Re: [Qemu-devel] [PATCH 2/2] docs/qdev-device-use.txt: update section Default Devices

Quoted 14 lines · Markus Armbruster

Resynchronize the table of default device suppressions with vl.c's default_list[].

---
 docs/qdev-device-use.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
docs/qdev-device-use.txt +0 -0
index caf779b..f9f9eaa 100644
@@ -401,12 +401,13 @@ type.
 some DEVNAMEs:

docs/qdev-device-use.txt type. · line 409

Quoted 10 lines
docs/qdev-device-use.txt +2 -4
 
     default device      suppressing DEVNAMEs
-    CD-ROM              ide-cd, ide-drive, scsi-cd
-    isa-fdc's driveA    isa-fdc
+    CD-ROM              ide-cd, ide-drive, ide-hd, scsi-cd, scsi-hd
+    isa-fdc's driveA    floppy, isa-fdc
     parallel            isa-parallel
     serial              isa-serial
-    VGA                 VGA, cirrus-vga, vmware-svga
-    virtioconsole       virtio-serial-pci, virtio-serial-s390, virtio-serial

virtio-serial-s390 has been removed by commit 7b3fdbd9a8267, so that should be OK.

docs/qdev-device-use.txt type. · line 413

Quoted 6 lines
docs/qdev-device-use.txt +3 -0
+    VGA                 VGA, cirrus-vga, isa-vga, isa-cirrus-vga,
+                        vmware-svga, qxl-vga, virtio-vga
+    virtioconsole       virtio-serial-pci, virtio-serial
 
 The default NIC is connected to a default part created along with it.
 It is *not* suppressed by configuring a NIC with -device (you may call
Acked-by on the v1 series
#6 lore raw
In reply to Markus Armbruster
Quoted 9 lines · Markus Armbruster

Markus Armbruster (2):
docs qemu-doc: Avoid ide-drive, it's deprecated docs/qdev-device-use.txt: update section Default Devices

 docs/bootindex.txt       |  2 +-
 docs/qdev-device-use.txt | 13 +++++++------
 qemu-options.hx          |  2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)

Shame on me for not noticing, but thank you.

#7 lore raw
Quoted 11 lines · John Snow
Quoted 9 lines · Markus Armbruster

Markus Armbruster (2):
docs qemu-doc: Avoid ide-drive, it's deprecated docs/qdev-device-use.txt: update section Default Devices

 docs/bootindex.txt       |  2 +-
 docs/qdev-device-use.txt | 13 +++++++------
 qemu-options.hx          |  2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)
Quoted 3 lines

Shame on me for not noticing, but thank you.

Thanks!

The canonical path is through your tree, but I could stick it into a miscellaneous pull request if you like.

#8 lore raw
Quoted 13 lines · Markus Armbruster
Quoted 11 lines · John Snow
Quoted 9 lines · Markus Armbruster

Markus Armbruster (2):
docs qemu-doc: Avoid ide-drive, it's deprecated docs/qdev-device-use.txt: update section Default Devices

 docs/bootindex.txt       |  2 +-
 docs/qdev-device-use.txt | 13 +++++++------
 qemu-options.hx          |  2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)
Quoted 8 lines
Quoted 3 lines

Shame on me for not noticing, but thank you.

Thanks!

The canonical path is through your tree, but I could stick it into a miscellaneous pull request if you like.

Nevermind, qemu-trivial picked it up.

#9 lore raw
Quoted 17 lines · Markus Armbruster
Quoted 15 lines · Markus Armbruster
Quoted 13 lines · John Snow
Quoted 9 lines · Markus Armbruster

Markus Armbruster (2):
docs qemu-doc: Avoid ide-drive, it's deprecated docs/qdev-device-use.txt: update section Default Devices

 docs/bootindex.txt       |  2 +-
 docs/qdev-device-use.txt | 13 +++++++------
 qemu-options.hx          |  2 +-
 3 files changed, 9 insertions(+), 8 deletions(-)

Shame on me for not noticing, but thank you.

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

Thanks!

The canonical path is through your tree, but I could stick it into a miscellaneous pull request if you like.

Nevermind, qemu-trivial picked it up.

That was my assumption since it went to -trivial :) Glad my inaction helped sort it out.

#10 lore raw
In reply to Markus Armbruster
Quoted 3 lines · Markus Armbruster

Markus Armbruster (2):
docs qemu-doc: Avoid ide-drive, it's deprecated docs/qdev-device-use.txt: update section Default Devices

Applied to -trivial, thanks!

/mjt