qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH] generalize QOM path resolution


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH] generalize QOM path resolution
Date: Mon, 30 Jan 2012 16:18:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 01/30/2012 03:28 PM, Anthony Liguori wrote:

You are not going to have anyway a link<Object>. That makes it fine to
resolve a
link<Block> and a link<Device> according to different rules.

I think we agreed (in IRC) that we can handle this by changing
qdev_resolve_path() to take an optional TYPE argument which will cause
qdev_resolve_path() to only succeed if the resulting object implements
TYPE.

This can be used to disambiguate partial path matches such that a
link<BlockDriverState> property would only attempt to do partial path
resolutions on objects that have BlockDriverState in their parent
hierarchy.

Yes.

Paolo



reply via email to

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