That's right ! Problem solved by adding the stub function to 'kvm-stub.c'.
Thank you very much ! Le 10/02/2014 20:45, Andreas Färber a écrit : > Hi, > > Am 10.02.2014 19:18, schrieb Vincent KHERBACHE: >> I just created a new QMP command following the >> 'writing-qmp-commands.txt' howto. >> >> It's works well by adding the corresponding function into 'qmp.c', but >> when I want to insert the function in 'kvm-all.c' (which is my goal) I >> get an 'undefined reference' error to the function from 'qmp-marchal.c' >> during the compilation. > > Have you thought of also adding a corresponding function to kvm-stub.c > for the targets not linking kvm-all.c? > > Regards, > Andreas > -- Vincent KHERBACHE