From patchwork Tue Nov 16 16:01:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 71431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9C7C5B713D for ; Wed, 17 Nov 2010 03:49:23 +1100 (EST) Received: from localhost ([127.0.0.1]:53841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIOMl-0001sY-Hn for incoming@patchwork.ozlabs.org; Tue, 16 Nov 2010 11:26:43 -0500 Received: from [140.186.70.92] (port=34935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PINzk-0006EU-3b for qemu-devel@nongnu.org; Tue, 16 Nov 2010 11:02:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PINzf-0005Gn-I9 for qemu-devel@nongnu.org; Tue, 16 Nov 2010 11:02:53 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:34532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PINzf-0005Gh-Fk for qemu-devel@nongnu.org; Tue, 16 Nov 2010 11:02:51 -0500 Received: from d01relay01.pok.ibm.com (d01relay01.pok.ibm.com [9.56.227.233]) by e5.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id oAGFfJTS013528 for ; Tue, 16 Nov 2010 10:41:19 -0500 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay01.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAGG2paS299050 for ; Tue, 16 Nov 2010 11:02:51 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oAGG2mbU015288 for ; Tue, 16 Nov 2010 11:02:50 -0500 Received: from localhost.localdomain (sig-9-76-106-234.mts.ibm.com [9.76.106.234]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oAGG24rn011388; Tue, 16 Nov 2010 11:02:44 -0500 From: Michael Roth To: qemu-devel@nongnu.org Date: Tue, 16 Nov 2010 10:01:59 -0600 Message-Id: <1289923320-5638-18-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1289923320-5638-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1289923320-5638-1-git-send-email-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: aliguori@linux.vnet.ibm.com, ryanh@us.ibm.com, agl@linux.vnet.ibm.com, mdroth@linux.vnet.ibm.com, abeekhof@redhat.com Subject: [Qemu-devel] [RFC][PATCH v4 17/18] virtagent: qemu-vp, va_send_hello() on startup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make the hello call on guest agent startup so QEMU can do whatever init it needs (currently, capabilities negotiation). Temporarilly commented due to this tending to induce a virtio bug in RHEL 6.0. As a result capabilities negotiation must be invoked manually from QEMU via the agent_capabilities monitor command. Signed-off-by: Michael Roth --- qemu-vp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/qemu-vp.c b/qemu-vp.c index 38959e5..b8af513 100644 --- a/qemu-vp.c +++ b/qemu-vp.c @@ -580,6 +580,8 @@ int main(int argc, char **argv) errx(EXIT_FAILURE, "error initializing guest agent"); } + /* tell the host the agent is running */ + //va_send_hello(); } /* main i/o loop */