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
  0 siblings, 1 reply; 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
  0 siblings, 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: Re: [Qemu-devel] cdrom hardcoded index
@ 2006-08-28 12:20 Armistead, Jason
  2006-08-28 13:52 ` Paul Brook
  0 siblings, 1 reply; 6+ messages in thread
From: Armistead, Jason @ 2006-08-28 12:20 UTC (permalink / raw)
  To: 'qemu-devel@nongnu.org'

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
>
>Examples:
>
>-ide0 /tmp/myimage.dsk
>Set primary master as harddisk (hd: is the default)
>
>-ide1 hd:/tmp/myimage.dsk
>Set primary slave as harddisk (hd: is not necessary in this case, as
>it's the default).
>
>-ide3 cd:/dev/cdrom
>Set secondary slave as cdrom using device /dev/cdrom
>
>-ide0 cd:/tmp/myimage.iso
>Set primary master as cdrom using an ISO image file.
>
>Of course, the previous parameters (hda, hdb, hdc, hdd and cdrom)
>should be also available for compatibility reasons.
>
>And you could also add -fd0 (for -fda) and -fd1(for -fdb) for
>consistency with the rest of parameters.
>
>Just my two cents.


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.

Cheers

Jason

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

* Re: [Qemu-devel] cdrom hardcoded index
  2006-08-28 12:20 Re: [Qemu-devel] cdrom hardcoded index Armistead, Jason
@ 2006-08-28 13:52 ` Paul Brook
  2006-08-28 14:12   ` [Qemu-devel] Asking about testing a character device on Qemu ARM system Tieu Ma Dau
  0 siblings, 1 reply; 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

* [Qemu-devel] Asking about testing a character device on Qemu ARM system
  2006-08-28 13:52 ` Paul Brook
@ 2006-08-28 14:12   ` Tieu Ma Dau
  2006-08-28 17:53     ` Paul Brook
  0 siblings, 1 reply; 6+ messages in thread
From: Tieu Ma Dau @ 2006-08-28 14:12 UTC (permalink / raw)
  To: qemu-devel

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


Hi all,
I use Qemu to simulate ARM system. I add a simple LED device at IO port
address 0x1b000000 (because this address is marked "reserved" in
IntegratorCP documentation). 
So I want to ask you the following questions:
1. Is there any problem if I use address 0x1b000000 for my new device?
2. How can I test this device?
Do you have any ideas to help me for these questions?
Thanks a lot
Tieu

 
 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

[-- Attachment #2: Type: text/html, Size: 729 bytes --]

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

* Re: [Qemu-devel] Asking about testing a character device on Qemu ARM system
  2006-08-28 14:12   ` [Qemu-devel] Asking about testing a character device on Qemu ARM system Tieu Ma Dau
@ 2006-08-28 17:53     ` Paul Brook
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Brook @ 2006-08-28 17:53 UTC (permalink / raw)
  To: qemu-devel

On Monday 28 August 2006 15:12, Tieu Ma Dau wrote:
> Hi all,
> I use Qemu to simulate ARM system. I add a simple LED device at IO port
> address 0x1b000000 (because this address is marked "reserved" in
> IntegratorCP documentation).
> So I want to ask you the following questions:
> 1. Is there any problem if I use address 0x1b000000 for my new device?
> 2. How can I test this device?

Treat it exactly like you would real hardware.

Paul

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-28 12:20 Re: [Qemu-devel] cdrom hardcoded index Armistead, Jason
2006-08-28 13:52 ` Paul Brook
2006-08-28 14:12   ` [Qemu-devel] Asking about testing a character device on Qemu ARM system Tieu Ma Dau
2006-08-28 17:53     ` Paul Brook
  -- strict thread matches above, loose matches on Subject: below --
2006-08-24 19:31 [Qemu-devel] cdrom hardcoded index drtyc
2006-08-27 23:32 ` Pascal Terjan

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