Viscosity of dense matter