diff options
Diffstat (limited to 'arch/mips/kvm/mips.c')
-rw-r--r-- | arch/mips/kvm/mips.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index 0aab83d894ba..73eecc779454 100644 --- a/arch/mips/kvm/mips.c +++ b/arch/mips/kvm/mips.c | |||
@@ -510,6 +510,8 @@ static u64 kvm_mips_get_one_regs[] = { | |||
510 | KVM_REG_MIPS_CP0_CONFIG1, | 510 | KVM_REG_MIPS_CP0_CONFIG1, |
511 | KVM_REG_MIPS_CP0_CONFIG2, | 511 | KVM_REG_MIPS_CP0_CONFIG2, |
512 | KVM_REG_MIPS_CP0_CONFIG3, | 512 | KVM_REG_MIPS_CP0_CONFIG3, |
513 | KVM_REG_MIPS_CP0_CONFIG4, | ||
514 | KVM_REG_MIPS_CP0_CONFIG5, | ||
513 | KVM_REG_MIPS_CP0_CONFIG7, | 515 | KVM_REG_MIPS_CP0_CONFIG7, |
514 | KVM_REG_MIPS_CP0_ERROREPC, | 516 | KVM_REG_MIPS_CP0_ERROREPC, |
515 | 517 | ||
@@ -590,6 +592,12 @@ static int kvm_mips_get_reg(struct kvm_vcpu *vcpu, | |||
590 | case KVM_REG_MIPS_CP0_CONFIG3: | 592 | case KVM_REG_MIPS_CP0_CONFIG3: |
591 | v = (long)kvm_read_c0_guest_config3(cop0); | 593 | v = (long)kvm_read_c0_guest_config3(cop0); |
592 | break; | 594 | break; |
595 | case KVM_REG_MIPS_CP0_CONFIG4: | ||
596 | v = (long)kvm_read_c0_guest_config4(cop0); | ||
597 | break; | ||
598 | case KVM_REG_MIPS_CP0_CONFIG5: | ||
599 | v = (long)kvm_read_c0_guest_config5(cop0); | ||
600 | break; | ||
593 | case KVM_REG_MIPS_CP0_CONFIG7: | 601 | case KVM_REG_MIPS_CP0_CONFIG7: |
594 | v = (long)kvm_read_c0_guest_config7(cop0); | 602 | v = (long)kvm_read_c0_guest_config7(cop0); |
595 | break; | 603 | break; |
@@ -701,6 +709,12 @@ static int kvm_mips_set_reg(struct kvm_vcpu *vcpu, | |||
701 | case KVM_REG_MIPS_CP0_COUNT: | 709 | case KVM_REG_MIPS_CP0_COUNT: |
702 | case KVM_REG_MIPS_CP0_COMPARE: | 710 | case KVM_REG_MIPS_CP0_COMPARE: |
703 | case KVM_REG_MIPS_CP0_CAUSE: | 711 | case KVM_REG_MIPS_CP0_CAUSE: |
712 | case KVM_REG_MIPS_CP0_CONFIG: | ||
713 | case KVM_REG_MIPS_CP0_CONFIG1: | ||
714 | case KVM_REG_MIPS_CP0_CONFIG2: | ||
715 | case KVM_REG_MIPS_CP0_CONFIG3: | ||
716 | case KVM_REG_MIPS_CP0_CONFIG4: | ||
717 | case KVM_REG_MIPS_CP0_CONFIG5: | ||
704 | case KVM_REG_MIPS_COUNT_CTL: | 718 | case KVM_REG_MIPS_COUNT_CTL: |
705 | case KVM_REG_MIPS_COUNT_RESUME: | 719 | case KVM_REG_MIPS_COUNT_RESUME: |
706 | case KVM_REG_MIPS_COUNT_HZ: | 720 | case KVM_REG_MIPS_COUNT_HZ: |