Received: from [140.186.70.92] (port=41492 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE8PG-00054o-C5 for qemu-devel@nongnu.org; Thu, 04 Nov 2010 18:35:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE8PC-0002bV-Lt for qemu-devel@nongnu.org; Thu, 04 Nov 2010 18:35:39 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:60494 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PE8PC-0002bO-3m for qemu-devel@nongnu.org; Thu, 04 Nov 2010 18:35:38 -0400 From: =?utf-8?b?TGx1w61z?= Date: Thu, 04 Nov 2010 23:35:58 +0100 Message-ID: <20101104223558.16669.33061.stgit@ginnungagap.bsc.es> In-Reply-To: <20101104223452.16669.25092.stgit@ginnungagap.bsc.es> References: <20101104223452.16669.25092.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v2 4/6] backdoor: declare guest-side interface macros List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Header for the user to include when compiling guest applications that want to communicate with QEMU through backdoor instructions. Signed-off-by: Lluís Vilanova --- backdoor/guest.h | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 backdoor/guest.h diff --git a/backdoor/guest.h b/backdoor/guest.h new file mode 100644 index 0000000..8373762 --- /dev/null +++ b/backdoor/guest.h @@ -0,0 +1,33 @@ +/* + * Guest-side interface 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 . + */ + +#ifndef BACKDOOR__GUEST_H +#define BACKDOOR__GUEST_H + +/* Backdoor macro names define the types of its arguments: + * + * - i8: immediate of 8 bits + * - v32: value of 32 bits + */ + + +#error Undefined instruction-based backdoor interface for guest architecture + + +#endif /* BACKDOOR__GUEST_H */