From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] KVM: s390: Add "devname:kvm" alias. Date: Mon, 03 Jun 2013 09:50:24 +0200 Message-ID: <51AC4AC0.9090607@redhat.com> References: <1369672953-33705-1-git-send-email-cornelia.huck@de.ibm.com> <1369672953-33705-2-git-send-email-cornelia.huck@de.ibm.com> <51A48A71.3010705@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Cornelia Huck , Marcelo Tossati , Gleb Natapov , Christian Borntraeger , Heiko Carstens , Martin Schwidefsky , KVM , linux-s390 To: unlisted-recipients:; (no To-header on input) Return-path: Received: from mail-qc0-f171.google.com ([209.85.216.171]:62034 "EHLO mail-qc0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752192Ab3FCHuj (ORCPT ); Mon, 3 Jun 2013 03:50:39 -0400 In-Reply-To: <51A48A71.3010705@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 28/05/2013 12:44, Paolo Bonzini ha scritto: > Il 27/05/2013 18:42, Cornelia Huck ha scritto: >> Providing a "devname:kvm" module alias enables automatic loading of >> the kvm module when /dev/kvm is opened. >> >> Signed-off-by: Cornelia Huck >> --- >> arch/s390/kvm/kvm-s390.c | 9 +++++++++ >> 1 file changed, 9 insertions(+) >> >> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c >> index 93444c4..3b597e5 100644 >> --- a/arch/s390/kvm/kvm-s390.c >> +++ b/arch/s390/kvm/kvm-s390.c >> @@ -1138,3 +1138,12 @@ static void __exit kvm_s390_exit(void) >> >> module_init(kvm_s390_init); >> module_exit(kvm_s390_exit); >> + >> +/* >> + * Enable autoloading of the kvm module. >> + * Note that we add the module alias here instead of virt/kvm/kvm_main.c >> + * since x86 takes a different approach. >> + */ >> +#include >> +MODULE_ALIAS_MISCDEV(KVM_MINOR); >> +MODULE_ALIAS("devname:kvm"); >> > > Applied, thanks. After discussion with Gleb, we have decided to postpone this patch to 3.11. Thanks for your understanding. :) I'll push pending patches to master and queue soon. Paolo