KIR2DL3 and the KIR ligand groups HLA-A-Bw4 and HLA-C2 predict the outcome of hepatitis B virus infection.