From patchwork Tue Oct 19 19:22:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?Q?Llu=C3=ADs?= X-Patchwork-Id: 68940 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 0DD56B70D2 for ; Sat, 23 Oct 2010 06:39:05 +1100 (EST) Received: from localhost ([127.0.0.1]:45987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9NRy-0001mf-Q9 for incoming@patchwork.ozlabs.org; Fri, 22 Oct 2010 15:38:50 -0400 Received: from [140.186.70.92] (port=42660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9MnY-0008JP-RQ for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:57:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9MnQ-00055d-0F for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:56:56 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:43762 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P9MnP-00055T-KI for qemu-devel@nongnu.org; Fri, 22 Oct 2010 14:56:55 -0400 Received: (qmail invoked by alias); 22 Oct 2010 18:56:54 -0000 Received: from unknown (EHLO localhost) [84.88.53.92] by mail.gmx.net (mp007) with SMTP; 22 Oct 2010 20:56:54 +0200 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX18Tf3dZTRkT6ym84u2l6eQ/GwVTDWHGs4vHGoivyw k/ap8XXhWXrXr8 From: xscript@gmx.net (=?utf-8?Q?Llu=C3=ADs?=) To: qemu-devel@nongnu.org In-Reply-To: Date: Tue, 19 Oct 2010 21:22:13 +0200 References: Message-Id: <4fe857c095e80afe422d968daf97f3ceeba62780.1287772676.git.vilanova@ac.upc.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH 02/18] backdoor: Declare host-side backdoor helpers 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 These helpers must be implemented by the user on "libbackdoor.a". Signed-off-by: Lluís Vilanova --- backdoor/helper.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 backdoor/helper.h diff --git a/backdoor/helper.h b/backdoor/helper.h new file mode 100644 index 0000000..18b53ac --- /dev/null +++ b/backdoor/helper.h @@ -0,0 +1,21 @@ +/* + * Helpers for instruction-based backdoor communication. + * + * Copyright (c) 2010 Lluís Vilanova + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +DEF_HELPER_1(backdoor_i8, void, i32); +DEF_HELPER_2(backdoor_i8_v, void, i32, tl);