spice vdagent

All vdagent communications on the guest side run over a single pipe whichgets presented to the guest os as a virtio serial port

说的是guest上的vdagent通过virtio serial port上的管道进行通信

When the spice server receives a message it removes the chunk header andthen depending on the port in the chunk header, forwards it to the client,handles it itself, or if the port is not a valid value logs an error anddrops the message.

说的是spice server接收所有的vdagent信息,根据chunk header判断是需要client处理还是自己处理。

enum {
    VD_AGENT_MOUSE_STATE = 1,
    VD_AGENT_MONITORS_CONFIG,
    VD_AGENT_REPLY,
    VD_AGENT_CLIPBOARD,
    VD_AGENT_DISPLAY_CONFIG,
    VD_AGENT_ANNOUNCE_CAPABILITIES,
    VD_AGENT_END_MESSAGE,  
};
说的是vdagent消息的几种类型,也就是基本定位了vdagent的功能

你可能感兴趣的:(spice vdagent)