xcp-1.6-updates/xen-4.1.hg

changeset 23271:13741fd6253b

x86,hvm: enable VCPUOP_register_vcpu_info op in hvm hypercall

pvhvm running with more than 32 vcpus and pv_irq/pv_time enabled
need vcpu placement to work, or else it will softlockup.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Committed-by: Keir Fraser <keir@xen.org>
xen-unstable changeset: 24013:c4ed56a102dc
xen-unstable date: Fri Oct 28 17:20:21 2011 +0100
author Zhenzhong Duan <zhenzhong.duan@oracle.com>
date Thu Mar 29 10:20:58 2012 +0100 (2012-03-29)
parents c7729c73fefc
children 54b4ae0dfb60
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Thu Mar 29 10:19:56 2012 +0100
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Thu Mar 29 10:20:58 2012 +0100
     1.3 @@ -2586,6 +2586,7 @@ static long hvm_vcpu_op(
     1.4      case VCPUOP_stop_periodic_timer:
     1.5      case VCPUOP_set_singleshot_timer:
     1.6      case VCPUOP_stop_singleshot_timer:
     1.7 +    case VCPUOP_register_vcpu_info:
     1.8          rc = do_vcpu_op(cmd, vcpuid, arg);
     1.9          break;
    1.10      default:
    1.11 @@ -2651,6 +2652,7 @@ static long hvm_vcpu_op_compat32(
    1.12      case VCPUOP_stop_periodic_timer:
    1.13      case VCPUOP_set_singleshot_timer:
    1.14      case VCPUOP_stop_singleshot_timer:
    1.15 +    case VCPUOP_register_vcpu_info:
    1.16          rc = compat_vcpu_op(cmd, vcpuid, arg);
    1.17          break;
    1.18      default: