diff usr/src/uts/sun4v/sys/vdc.h @ 6099:b338715e1b52

6503157 guest domain I/O statistics need to be made available to iostat(1M)
author lm66018
date Thu, 28 Feb 2008 06:51:58 -0800
parents 4c514db6bfb0
children d50f51fd3502
line wrap: on
line diff
--- a/usr/src/uts/sun4v/sys/vdc.h	Thu Feb 28 05:07:41 2008 -0800
+++ b/usr/src/uts/sun4v/sys/vdc.h	Thu Feb 28 06:51:58 2008 -0800
@@ -320,6 +320,13 @@
 	kcondvar_t	failfast_io_cv;		/* cv wait for I/O to finish */
 	vdc_io_t	*failfast_io_queue;	/* failfast io queue */
 
+	/*
+	 * kstats used to store I/O statistics consumed by iostat(1M).
+	 * These are protected by the lock mutex.
+	 */
+	kstat_t		*io_stats;
+	kstat_t		*err_stats;
+
 	ldc_mem_info_t		dring_mem_info;		/* dring information */
 	uint_t			dring_curr_idx;		/* current index */
 	uint32_t		dring_len;		/* dring length */