[pve-devel] [PATCH] block-job-complete : retry if block job cannot be complete

Alexandre DERUMIER aderumier at odiso.com
Mon Nov 10 09:23:14 CET 2014


>>OK, it is not possible to implement this, because qemu only allows
>>a single qmp connection. So if we keep a connection open to get events, 
>>we would block everything else.

Yes, maybe with some kind of proxy daemon


qmp command ---> qmp proxy daemon<-----events--->qemu process

But that mean another daemon, and if the daemon die, nothing more is working.


(Note that for block-job-complete, I think that it should work fine with my last patch,
 and if they are really to much ios, the vm pause will help to stop ios and the block job will complete)




----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Lundi 10 Novembre 2014 07:40:20 
Objet: RE: [pve-devel] [PATCH] block-job-complete : retry if block job cannot be complete 

> > Yes, qmp events are the right way. We should just need to catch the 
> > ready event and do the block-job-complete. 
> > It could be also useful to catch other events like vm stop. (If 
> > stopped from the guest). 
> > 
> > But I don't known how to implement that. 
> 
> I will do a few tests now to see if we can implement that. 

OK, it is not possible to implement this, because qemu only allows 
a single qmp connection. So if we keep a connection open to get events, 
we would block everything else. 



More information about the pve-devel mailing list