From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: add the two command to add or delete the usb device instead of do it in QEMU console Date: Sun, 13 Dec 2009 23:09:31 +0200 Message-ID: <20091213210931.GF16033@reaktio.net> References: <4ADE00CB020000200006F5E4@novprvlin0050.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4ADE00CB020000200006F5E4@novprvlin0050.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Song Cc: xen-devel@lists.xensource.com, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, Oct 20, 2009 at 01:26:19AM -0600, James Song wrote: > I rewrite the patch, pls check. I also put those as attachments. > > Thanks, > -James > > Signed-off-by: James Song Wei <[1]jsong@novell.com> > > diff -r 0705efd9c69e tools/python/xen/xend/server/SrvDomain.py > --- a/tools/python/xen/xend/server/SrvDomain.py Fri Oct 16 09:04:53 2009 > +0100 > +++ b/tools/python/xen/xend/server/SrvDomain.py Mon Oct 19 10:15:06 2009 > +0800 > @@ -225,6 +225,19 @@ > self.acceptCommand(req) > return self.xd.domain_reset(self.dom.getName()) > > + def op_usb_add(self, op, req): > + self.acceptCommand(req) > + return req.threadRequest(self.do_usb_add, op, req) > + > + def do_usb_add(self, _, req): > + return self.xd.domain_usb_add(self.dom.getName(), req) > + > + def op_usb_del(self, op, req): > + self.acceptCommand(req) > + return req.threadRequest(self.do_usb_add, op, req) > + > + def do_usb_del(self, _, req): > + return self.xd.domain_usb_add(self.dom.getName(), req) > Hello, Shouldn't op_usb_del() use do_usb_del() and do_usb_del() use domain_usb_del() ? Or did I miss something? -- Pasi