qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] New Bee : What is the canonical path.


From: boddu pavan
Subject: Re: [Qemu-devel] New Bee : What is the canonical path.
Date: Thu, 11 Dec 2014 07:02:57 +0000 (UTC)

Thanks Poalo, This was helpful.

Regards,
Sai Pavan


On Wednesday, December 10, 2014 6:27 PM, Paolo Bonzini <address@hidden> wrote:




On 09/12/2014 12:28, boddu pavan wrote:
> Hi,
>
> I am new to qemu, And i need help in understanding a part of code,  Can
> any one tell the use of Canonical paths of the Object.


The use is mostly internal.  Every time you set a property, you go
through a "Visitor" that represents the value.  The representations
allowed by visitors are numbers, strings, booleans, etc.

When you want to set a property to an object, you actually need to set a
property to a string, because Visitors support string values.  So you
use a "path".  Typically you'll use a canonical path (though you can
also use a non-canonical path).  Canonical paths are formed by following
properties of type child<Something>.  Non-canonical paths are formed by
following properties of type child<Something> or link<Something> (where
Something is the name of a class type).

Similarly, when you read a property that has an object type, the
property's value will be a path, and the getter for that property will
always use a canonical path.

Paolo





reply via email to

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