mirror of https://github.com/xemu-project/xemu.git
kvm: ppc: Drop CONFIG_KVM_PPC_PVR
Required header support is now unconditionally available. CC: Alexander Graf <agraf@suse.de> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
5802e066eb
commit
0bed3bba7d
|
@ -3226,7 +3226,6 @@ case "$target_arch2" in
|
||||||
if test $vhost_net = "yes" ; then
|
if test $vhost_net = "yes" ; then
|
||||||
echo "CONFIG_VHOST_NET=y" >> $config_target_mak
|
echo "CONFIG_VHOST_NET=y" >> $config_target_mak
|
||||||
fi
|
fi
|
||||||
echo "CONFIG_KVM_PPC_PVR=y" >> $config_target_mak
|
|
||||||
fi
|
fi
|
||||||
esac
|
esac
|
||||||
if test "$target_bigendian" = "yes" ; then
|
if test "$target_bigendian" = "yes" ; then
|
||||||
|
|
|
@ -104,21 +104,12 @@ static int kvm_arch_sync_sregs(CPUState *cenv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(CONFIG_KVM_PPC_PVR)
|
|
||||||
if (1) {
|
|
||||||
fprintf(stderr, "kvm error: missing PVR setting capability\n");
|
|
||||||
return -ENOSYS;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = kvm_vcpu_ioctl(cenv, KVM_GET_SREGS, &sregs);
|
ret = kvm_vcpu_ioctl(cenv, KVM_GET_SREGS, &sregs);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_KVM_PPC_PVR
|
|
||||||
sregs.pvr = cenv->spr[SPR_PVR];
|
sregs.pvr = cenv->spr[SPR_PVR];
|
||||||
#endif
|
|
||||||
return kvm_vcpu_ioctl(cenv, KVM_SET_SREGS, &sregs);
|
return kvm_vcpu_ioctl(cenv, KVM_SET_SREGS, &sregs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue