Active HCV replication is associated with incident and prevalent type 2 diabetes in persons living with HIV.