A tightly regulated IL-22 response maintains immune functions and homeostasis in systemic viral infection.