|
From: | Yi Min Zhao |
Subject: | Re: [Qemu-devel] [PATCH v2 1/2] s390x/ais: enable ais when migration is available |
Date: | Wed, 27 Sep 2017 13:45:54 +0800 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
在 2017/9/26 下午9:36, Christian Borntraeger 写道:
@@ -557,6 +557,12 @@ static void kvm_s390_flic_realize(DeviceState *dev, Error **errp) test_attr.group = KVM_DEV_FLIC_CLEAR_IO_IRQ; flic_state->clear_io_supported = !ioctl(flic_state->fd, KVM_HAS_DEVICE_ATTR, test_attr); + /* try enable the AIS facility */ + test_attr.group = KVM_DEV_FLIC_AISM_ALL; + if (!ioctl(flic_state->fd, KVM_HAS_DEVICE_ATTR, test_attr)) { + kvm_vm_enable_cap(kvm_state, KVM_CAP_S390_AIS, 0);
Is there an indention error? Except this, the code LGTM.
+ } + return;
[Prev in Thread] | Current Thread | [Next in Thread] |