From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Does KVM support Intel FlexMigration feature? Date: Tue, 03 Dec 2013 13:55:11 +0100 Message-ID: <529DD4AF.9070209@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Xuekun Hu Return-path: Received: from mail-qa0-f46.google.com ([209.85.216.46]:60581 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465Ab3LCMzR (ORCPT ); Tue, 3 Dec 2013 07:55:17 -0500 Received: by mail-qa0-f46.google.com with SMTP id f11so5501748qae.5 for ; Tue, 03 Dec 2013 04:55:16 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 03/12/2013 06:50, Xuekun Hu ha scritto: > Hi, All > > Does KVM support Intel FlexMigration feature? If yes, is there a doc > to describe how to do use it (set cpu features mask)? > Many thanks. KVM uses Intel's virtualization extensions (VT-x) for CPUID exits, and not the masking/faulting MSRs. CPUID support is controlled by userspace (i.e. outside KVM), using the KVM_GET_SUPPORTED_CPUID and KVM_SET_CPUID2 ioctl. The ioctls are documented in Documentation/virtual/kvm/api.txt. The KVM_SET_CPUID2 ioctl is not documented but it is the same as KVM_SET_CPUID, except that is uses "struct kvm_cpuid2" instead of "struct kvm_cpuid". Paolo