[libvirt] [PATCH 0/4] Improve netlink to support all protocols.

tangchen tangchen at cn.fujitsu.com
Thu Jul 26 05:54:44 UTC 2012


Hi Viktor, Eric:

Would you please have a look at thest patches ?

If this way is acceptable, I will improve libvirt to support cpu hotplug uevent based on netlink.

Thanks. :)

On 07/23/2012 02:33 PM, tangchen wrote:
> Now, netlink in libvirt only suport NETLINK_ROUTE protocol.
> But we need other netlinks, especially to support cpu and memory hotplug.
> 
> These patches did the following things:
>     1) Change global variable "server" to an array to store all the netlink sockets,
>        and modified all the API prototypes.
>     2) Introduce a new API virNetlinkEventServiceStopAll() to stop all netlink servers.
>     3) Modify all the function calls.
> 
> Tang Chen (4):
>   Improve netlink to support all protocol.
>   Introduce virNetlinkEventServiceStopAll() to stop all netlink    
>     services in libvirt.
>   Modify all the function calls for API in virnetlink.c
>   DEBUG: print out netlink message.
> 
>  daemon/libvirtd.c                |   12 +-
>  src/libvirt_private.syms         |    1 +
>  src/util/virnetdev.c             |    6 +-
>  src/util/virnetdevmacvlan.c      |   12 +-
>  src/util/virnetdevvportprofile.c |    7 +-
>  src/util/virnetlink.c            |  235 +++++++++++++++++++++++++++++++-------
>  src/util/virnetlink.h            |   22 ++--
>  7 files changed, 232 insertions(+), 63 deletions(-)
> 

-- 
Best Regards,
Tang chen




More information about the libvir-list mailing list