|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Allow all trace-buffer hypercalls to be e
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8c6ff337d164f240513337c1f4ae8332da255176
# Parent 7f219d68e6849b873fbd76e9a30b5ba297acbcea
Allow all trace-buffer hypercalls to be executed even when tracing is currently
disabled.
From: George Dunlap
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
xen/common/trace.c | 10 +---------
1 files changed, 1 insertion(+), 9 deletions(-)
diff -r 7f219d68e684 -r 8c6ff337d164 xen/common/trace.c
--- a/xen/common/trace.c Thu Jun 01 19:14:42 2006 +0100
+++ b/xen/common/trace.c Thu Jun 01 21:34:47 2006 +0100
@@ -178,20 +178,12 @@ int tb_control(dom0_tbufcontrol_t *tbc)
spin_lock(&lock);
- if ( !tb_init_done &&
- (tbc->op != DOM0_TBUF_SET_SIZE) &&
- (tbc->op != DOM0_TBUF_ENABLE) )
- {
- spin_unlock(&lock);
- return -EINVAL;
- }
-
switch ( tbc->op )
{
case DOM0_TBUF_GET_INFO:
tbc->cpu_mask = tb_cpu_mask;
tbc->evt_mask = tb_event_mask;
- tbc->buffer_mfn = __pa(t_bufs[0]) >> PAGE_SHIFT;
+ tbc->buffer_mfn = opt_tbuf_size ? virt_to_mfn(t_bufs[0]) : 0UL;
tbc->size = opt_tbuf_size * PAGE_SIZE;
break;
case DOM0_TBUF_SET_CPU_MASK:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Allow all trace-buffer hypercalls to be executed even when tracing is currently disabled.,
Xen patchbot-unstable <=
|
|
|
|
|