diff options
author | Mark Johnson <Mark.Johnson@Sun.COM> | 2009-09-18 12:43:49 -0700 |
---|---|---|
committer | Mark Johnson <Mark.Johnson@Sun.COM> | 2009-09-18 12:43:49 -0700 |
commit | 62dcc6f36fd03042857eae7d26dc2dca0db70d0c (patch) | |
tree | 7baf142e2f95225aa3a81301ef3161aaaa4a010e /usr/src/uts/common/xen | |
parent | cdcc71c09dccd8c66f98c710f068f0722fe6de56 (diff) | |
download | illumos-gate-62dcc6f36fd03042857eae7d26dc2dca0db70d0c.tar.gz |
6878580 xentop -b doesn't show tap statistics
Diffstat (limited to 'usr/src/uts/common/xen')
-rw-r--r-- | usr/src/uts/common/xen/io/blk_common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/uts/common/xen/io/blk_common.c b/usr/src/uts/common/xen/io/blk_common.c index 09fdf675d9..b352345024 100644 --- a/usr/src/uts/common/xen/io/blk_common.c +++ b/usr/src/uts/common/xen/io/blk_common.c @@ -558,6 +558,17 @@ trans_retry: goto startconnectfail_transaction_start; } + /* xentop requires the instance in xenstore */ + e = xenbus_printf(xbt, xsnode, "instance", "%d", + ddi_get_instance(ring->ri_dip)); + if (e != 0) { + cmn_err(CE_WARN, "xdb@%s: failed to write 'instance'", + ddi_get_name_addr(dip)); + xvdi_fatal_error(dip, e, "writing 'instance'"); + (void) xenbus_transaction_end(xbt, 1); + goto startconnectfail_xenbus_printf; + } + /* If feature-barrier isn't present in xenstore, add it */ e = xenbus_read(xbt, xsnode, "feature-barrier", (void **)&barrier, &len); |