qemu: shared: Split out insertion code to the shared device list
To allow reuse split the code into a separate function and refactor it. To update an existing entry there's no need to copy it first, just update it inplace.
Showing
想要评论请 注册 或 登录