ia64/xen-unstable

view xen/include/asm-x86/hvm/domain.h @ 12232:dd62270df2ad

[XEN] Add 'loglvl' and 'guest_loglvl' boot parameters.

<lvl> := none|error|warning|info|debug|all

loglvl=<lvl_print_always>[/<lvl_print_ratelimit>]
<lvl_print_always>: log level which is always printed
<lvl_print_rlimit>: log level which is rate-limit printed

'loglvl' applies to non-guest-related messages.
'guest_loglvl' applies to guest-related messages.

Defaults: loglvl=warning ; guest_loglvl=none/warning

Also clean up hvm_print_line().

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@localhost.localdomain
date Thu Nov 02 22:24:20 2006 +0000 (2006-11-02)
parents 7957dffb855f
children cba947bc8450
line source
1 /*
2 * domain.h: HVM per domain definitions
3 *
4 * Copyright (c) 2004, Intel Corporation.
5 * Copyright (c) 2005, International Business Machines Corporation
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18 * Place - Suite 330, Boston, MA 02111-1307 USA.
19 *
20 */
22 #ifndef __ASM_X86_HVM_DOMAIN_H__
23 #define __ASM_X86_HVM_DOMAIN_H__
25 #include <asm/hvm/vpic.h>
26 #include <asm/hvm/vpt.h>
27 #include <asm/hvm/vlapic.h>
28 #include <asm/hvm/vioapic.h>
29 #include <public/hvm/params.h>
31 struct hvm_domain {
32 unsigned long shared_page_va;
33 unsigned long buffered_io_va;
34 spinlock_t buffered_io_lock;
35 s64 tsc_frequency;
36 struct pl_time pl_time;
38 struct hvm_virpic vpic;
39 struct hvm_vioapic vioapic;
40 struct hvm_io_handler io_handler;
42 unsigned char round_info[256];
43 spinlock_t round_robin_lock;
44 int interrupt_request;
46 /* hvm_print_line() logging. */
47 char pbuf[80];
48 int pbuf_idx;
49 spinlock_t pbuf_lock;
51 uint64_t params[HVM_NR_PARAMS];
52 };
54 #endif /* __ASM_X86_HVM_DOMAIN_H__ */