diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:22:52 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:22:52 +0100 |
commit | 268d40f9b898c545fbb27a5116ac8add34dde9e8 (patch) | |
tree | 92fe6d9e7599738a4245e4071e4bfd926e17c576 /xen/common/trace.c | |
parent | dd41a2dae2691026bc739bf1673f62f228b4049b (diff) | |
download | xen-268d40f9b898c545fbb27a5116ac8add34dde9e8.tar.gz xen-268d40f9b898c545fbb27a5116ac8add34dde9e8.tar.bz2 xen-268d40f9b898c545fbb27a5116ac8add34dde9e8.zip |
xentrace: fix bug in t_info size
t_info size should be in bytes, not pages. This fixes a bug
that crashes the hypervisor if the total number of all pages
is more than 1024 but less than 2048.
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Diffstat (limited to 'xen/common/trace.c')
-rw-r--r-- | xen/common/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/trace.c b/xen/common/trace.c index 110f3b8c7d..cc29c8b970 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -340,7 +340,7 @@ int tb_control(xen_sysctl_tbuf_op_t *tbc) case XEN_SYSCTL_TBUFOP_get_info: tbc->evt_mask = tb_event_mask; tbc->buffer_mfn = t_info ? virt_to_mfn(t_info) : 0; - tbc->size = T_INFO_PAGES; + tbc->size = T_INFO_PAGES * PAGE_SIZE; break; case XEN_SYSCTL_TBUFOP_set_cpu_mask: xenctl_cpumap_to_cpumask(&tb_cpu_mask, &tbc->cpu_mask); |