qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 11/11] xilinx_axidma: changed device name


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH v2 11/11] xilinx_axidma: changed device name
Date: Fri, 29 Jun 2012 17:21:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0

Am 29.06.2012 02:34, schrieb Peter Crosthwaite:
> On Thu, Jun 28, 2012 at 11:05 PM, Andreas Färber <address@hidden> wrote:
>> Am 28.06.2012 03:08, schrieb Peter Crosthwaite:
>>> On Thu, Jun 28, 2012 at 9:06 AM, Alexander Graf <address@hidden> wrote:
>>>>
>> [...]
>>>> [...] Why did commas in names work before, but now don't? Or put 
>>>> differently: Was this change on purpose?
>> [...]
>>> The -device command line arg. E.G. qemu-system-microblaze -device
>>> xilinx.axidma,foo=bar, ...
>>>
>>> If I have ,'s in the device name i need to escape them as they are
>>> syntax in -device.
>>
>> QOM is perfectly capable of handling commas and SPARC uses "SUNW,", too.
>> Using QMP in the future (Markus' RFC) should not be a problem either.
>>
>> Do you really need to construct board-level devices using -device?
>>
>> Maybe you have a suggestion to fix the syntax escaping issue for
>> Anthony's suggested -object? Because a comma is rather common in OF/FDT.
> 
> Yeh, our names are OF/FDT based, which is where the commas come from.
> I got rid of the comma though as something of a take the most
> defensive approach and handle the rest in external tools.
> 
>>
>> Adjusting device names to match what your Xilinx tool set uses sounds
>> very reasonable. But translating from "," to "." in two places does not
>> sound superior to translating from "," to ",," in one place to me? Maybe
>> I'm misunderstanding something? It might help to introduce QOM-style
>> TYPE_ constants, then the name is in a single location only.
> 
> So does escaping ","s with -device work today?

I never needed it myself but I remember reading that for file names ",,"
(double comma) escaping was introduced. I would assume that to be
implemented at QemuOpts level so that it should work for random
parameters, and after all the device name is translated to a regular
driver= parameter, too. If that doesn't work I would consider it a bug.

Cheers,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]