diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-13 12:01:43 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-11-13 12:01:43 +0000 |
commit | 7fd08736379e8db5cc440ccf718174d3cc511ce8 (patch) | |
tree | 4d5452a5700db441affee200c88044e1e6c1765f /xen/arch/x86/hvm/intercept.c | |
parent | db34d2aaa5f5eb5826a939fe8eacb91432a87d42 (diff) | |
download | xen-7fd08736379e8db5cc440ccf718174d3cc511ce8.tar.gz xen-7fd08736379e8db5cc440ccf718174d3cc511ce8.tar.bz2 xen-7fd08736379e8db5cc440ccf718174d3cc511ce8.zip |
[XEN] Get rid of many uses of domain_crash_synchronous().
It is much more dangerous than domain_crash() because it
stops execution of teh current context regardless of
current state (e.g., IRQs disabled, locks held).
The preferred method to crash a domain is domain_crash()
and error return to the caller.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/hvm/intercept.c')
-rw-r--r-- | xen/arch/x86/hvm/intercept.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xen/arch/x86/hvm/intercept.c b/xen/arch/x86/hvm/intercept.c index a145659f2d..ea93a59f8e 100644 --- a/xen/arch/x86/hvm/intercept.c +++ b/xen/arch/x86/hvm/intercept.c @@ -253,11 +253,7 @@ int register_io_handler( struct hvm_io_handler *handler = &d->arch.hvm_domain.io_handler; int num = handler->num_slot; - if ( num >= MAX_IO_HANDLER ) - { - printk("no extra space, register io interceptor failed!\n"); - domain_crash_synchronous(); - } + BUG_ON(num >= MAX_IO_HANDLER); handler->hdl_list[num].addr = addr; handler->hdl_list[num].size = size; |