qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] cdrom hardcoded index
@ 2006-08-24 19:31 drtyc
  2006-08-27 23:32 ` Pascal Terjan
  2006-08-28 11:41 ` RE : " Sylvain Petreolle
  0 siblings, 2 replies; 6+ messages in thread
From: drtyc @ 2006-08-24 19:31 UTC (permalink / raw)
  To: qemu-devel

Hello.

How about finally not having cdrom hardcoded? Right now installing some distro that reqires hda and hdc to be active raid components and having to change that single variable initialization vaue is easy but not comfortable enough with recompiling the qemu...

Someone tried this already with qemu-flex_cd.patch but looking at it now it will require some changes to apply...

Thanks.

not speaking about more then one images as cdrom

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

* Re: [Qemu-devel] cdrom hardcoded index
  2006-08-24 19:31 [Qemu-devel] cdrom hardcoded index drtyc
@ 2006-08-27 23:32 ` Pascal Terjan
  2006-08-28 11:41 ` RE : " Sylvain Petreolle
  1 sibling, 0 replies; 6+ messages in thread
From: Pascal Terjan @ 2006-08-27 23:32 UTC (permalink / raw)
  To: qemu-devel

On 8/24/06, drtyc@centrum.cz <drtyc@centrum.cz> wrote:
> Hello.
>
> How about finally not having cdrom hardcoded?
[...]
> not speaking about more then one images as cdrom

What about something like -hdX test.iso,hw=cdrom with default hw being disk ?

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

* RE : [Qemu-devel] cdrom hardcoded index
  2006-08-24 19:31 [Qemu-devel] cdrom hardcoded index drtyc
  2006-08-27 23:32 ` Pascal Terjan
@ 2006-08-28 11:41 ` Sylvain Petreolle
  2006-08-28 22:10   ` Fabrice Bellard
  1 sibling, 1 reply; 6+ messages in thread
From: Sylvain Petreolle @ 2006-08-28 11:41 UTC (permalink / raw)
  To: qemu-devel

hi,
--- drtyc@centrum.cz a écrit :

> Hello.
> 
> How about finally not having cdrom hardcoded? Right now installing some distro that reqires hda
> and hdc to be active raid components and having to change that single variable initialization
> vaue is easy but not comfortable enough with recompiling the qemu...
> 
> Someone tried this already with qemu-flex_cd.patch but looking at it now it will require some
> changes to apply...
> 
Jim sent a patch that works beautifully,
it adds -cdrom-[a,b,c,d] and even gives ability to have multiple cdrom drives.

Its vl.multicdrom, and you can download it from the archives at :
http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00289.html

Have fun.

Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---

 Run your favorite Windows apps with free ReactOS : http://www.reactos.org
Listen to non-DRMised Music: http://www.jamendo.com


Linux is not as well stable as it is told to. The proof is, mine has restarted two years ago, on the occasion of a power cut.
- H. Eychenne

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

* Re: [Qemu-devel] cdrom hardcoded index
  2006-08-28 12:20 Armistead, Jason
@ 2006-08-28 13:52 ` Paul Brook
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Brook @ 2006-08-28 13:52 UTC (permalink / raw)
  To: qemu-devel

On Monday 28 August 2006 13:20, Armistead, Jason wrote:
> On Monday, 28 August 2006 10:08 PM (AEST) Míguel wrote:
> >> What about something like -hdX test.iso,hw=cdrom with default hw being
>
> disk?
>
> >And why not a shorted and more standard solution?
> >
> >-ideN [hd:|cd:]filename
>
> And what about non-PC guest environments like Sparcs where there are no IDE
> drives, only SCSI ones for hard disk, CD and (I think) for floppy drives ?
> How would you expand that syntax ?
>
> Not everyone running QEMU is seeking to run a "PC in PC" configurations.

If you' are changing these options you may as well make if possible to use 
scsi on x86 targets. All the device emulation is there (commented out in 
pc.c) it's just missing the user-visible options to turn it on.

My current thinking is that instead of a fixed set of block devices, the host 
device emulation (IDE controller, SCSI HBA) would register named device with 
qemu. Each adapter is given a name (ide0, scsi0, etc), and has numbered slots 
for attaching storage devices. Then use a commandline syntax similar to 
the -net options to connect disks. Something like:

-disk dev=ide0,id=0,file=foo.iso,type=cdrom -disk scsi0,3,bar.img

Gives you an ide cdrom on  primary master channel, and a scsi harddrive with 
SCSI ID3 on the scsi controller.

I guess we probably want to model a dual-channel IDE controller as two 
separate controllers for these purposes.

If done properly I'd expect this scheme to allow hot-plugging of devices, and 
automatic selection of the emulated hardware based on what devices the user 
requests. I'd also hope it would fit nicely into future config file 
structure.

Paul

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

* Re: RE : [Qemu-devel] cdrom hardcoded index
  2006-08-28 11:41 ` RE : " Sylvain Petreolle
@ 2006-08-28 22:10   ` Fabrice Bellard
  2006-08-28 22:46     ` RE : " Sylvain Petreolle
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Bellard @ 2006-08-28 22:10 UTC (permalink / raw)
  To: qemu-devel

Sylvain Petreolle wrote:
> hi,
> --- drtyc@centrum.cz a écrit :
> 
> 
>>Hello.
>>
>>How about finally not having cdrom hardcoded? Right now installing some distro that reqires hda
>>and hdc to be active raid components and having to change that single variable initialization
>>vaue is easy but not comfortable enough with recompiling the qemu...
>>
>>Someone tried this already with qemu-flex_cd.patch but looking at it now it will require some
>>changes to apply...
>>
> 
> Jim sent a patch that works beautifully,
> it adds -cdrom-[a,b,c,d] and even gives ability to have multiple cdrom drives.
> 
> Its vl.multicdrom, and you can download it from the archives at :
> http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00289.html

A VM configuration file will be added in QEMU very soon. People wishing 
to have weird hardware setups will have to use it. I am not sure it is 
necessary to complicate the command line syntax for very specific cases.

Regards,

Fabrice.

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

* RE : Re: RE : [Qemu-devel] cdrom hardcoded index
  2006-08-28 22:10   ` Fabrice Bellard
@ 2006-08-28 22:46     ` Sylvain Petreolle
  0 siblings, 0 replies; 6+ messages in thread
From: Sylvain Petreolle @ 2006-08-28 22:46 UTC (permalink / raw)
  To: qemu-devel

Hi Fabrice,
--- Fabrice Bellard <fabrice@bellard.org> a écrit :

> > Its vl.multicdrom, and you can download it from the archives at :
> > http://lists.gnu.org/archive/html/qemu-devel/2006-04/msg00289.html
> 
> A VM configuration file will be added in QEMU very soon. People wishing 
> to have weird hardware setups will have to use it. I am not sure it is 
> necessary to complicate the command line syntax for very specific cases.
> 
this one is very simple, and the current command line syntax doesnt change at all.
an option available only in a config file would be a bad idea imho.

Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---

 Run your favorite Windows apps with free ReactOS : http://www.reactos.org
Listen to non-DRMised Music: http://www.jamendo.com


Linux is not as well stable as it is told to. The proof is, mine has restarted two years ago, on the occasion of a power cut.
- H. Eychenne

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

end of thread, other threads:[~2006-08-28 22:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 19:31 [Qemu-devel] cdrom hardcoded index drtyc
2006-08-27 23:32 ` Pascal Terjan
2006-08-28 11:41 ` RE : " Sylvain Petreolle
2006-08-28 22:10   ` Fabrice Bellard
2006-08-28 22:46     ` RE : " Sylvain Petreolle
  -- strict thread matches above, loose matches on Subject: below --
2006-08-28 12:20 Armistead, Jason
2006-08-28 13:52 ` Paul Brook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).