* [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
@ 2019-11-20 17:09 Laurent Vivier
2019-11-20 17:40 ` Thomas Huth
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-11-20 17:09 UTC (permalink / raw)
To: qemu-devel
Cc: Laurent Vivier, Thomas Huth, Juan Quintela,
Dr. David Alan Gilbert, Cole Robinson, Paolo Bonzini,
David Gibson
On ppc64, migration-test only works with kvm_hv, and we already
have a check to verify the module is loaded.
kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
but on some systems (like build systems) /dev/kvm can be missing
(by administrators choice).
And as kvm_hv exists test-migration is started but QEMU falls back to
TCG because it cannot be used:
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
Back to tcg accelerator
And as the test is done with TCG, it fails.
As for s390x, we must check for the existence and the access rights
of /dev/kvm.
Reported-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
tests/migration-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/migration-test.c b/tests/migration-test.c
index ac780dffdaad..2b25ba6d77f6 100644
--- a/tests/migration-test.c
+++ b/tests/migration-test.c
@@ -1349,7 +1349,8 @@ int main(int argc, char **argv)
* some reason)
*/
if (g_str_equal(qtest_get_arch(), "ppc64") &&
- access("/sys/module/kvm_hv", F_OK)) {
+ (access("/sys/module/kvm_hv", F_OK) ||
+ access("/dev/kvm", R_OK | W_OK))) {
g_test_message("Skipping test: kvm_hv not available");
return g_test_run();
}
--
2.23.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-20 17:09 [PATCH] pseries: disable migration-test if /dev/kvm cannot be used Laurent Vivier
@ 2019-11-20 17:40 ` Thomas Huth
2019-11-20 18:33 ` Greg Kurz
2019-11-21 7:18 ` Juan Quintela
2 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2019-11-20 17:40 UTC (permalink / raw)
To: Laurent Vivier, qemu-devel
Cc: Juan Quintela, QEMU Trivial, Dr. David Alan Gilbert,
Cole Robinson, Paolo Bonzini, David Gibson
On 20/11/2019 18.09, Laurent Vivier wrote:
> On ppc64, migration-test only works with kvm_hv, and we already
> have a check to verify the module is loaded.
>
> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
> but on some systems (like build systems) /dev/kvm can be missing
> (by administrators choice).
>
> And as kvm_hv exists test-migration is started but QEMU falls back to
> TCG because it cannot be used:
>
> Could not access KVM kernel module: No such file or directory
> failed to initialize KVM: No such file or directory
> Back to tcg accelerator
>
> And as the test is done with TCG, it fails.
>
> As for s390x, we must check for the existence and the access rights
> of /dev/kvm.
>
> Reported-by: Cole Robinson <crobinso@redhat.com>
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> ---
> tests/migration-test.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/migration-test.c b/tests/migration-test.c
> index ac780dffdaad..2b25ba6d77f6 100644
> --- a/tests/migration-test.c
> +++ b/tests/migration-test.c
> @@ -1349,7 +1349,8 @@ int main(int argc, char **argv)
> * some reason)
> */
> if (g_str_equal(qtest_get_arch(), "ppc64") &&
> - access("/sys/module/kvm_hv", F_OK)) {
> + (access("/sys/module/kvm_hv", F_OK) ||
> + access("/dev/kvm", R_OK | W_OK))) {
> g_test_message("Skipping test: kvm_hv not available");
> return g_test_run();
> }
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-20 17:09 [PATCH] pseries: disable migration-test if /dev/kvm cannot be used Laurent Vivier
2019-11-20 17:40 ` Thomas Huth
@ 2019-11-20 18:33 ` Greg Kurz
2019-11-21 7:18 ` Juan Quintela
2 siblings, 0 replies; 8+ messages in thread
From: Greg Kurz @ 2019-11-20 18:33 UTC (permalink / raw)
To: Laurent Vivier
Cc: Thomas Huth, Juan Quintela, qemu-devel, Dr. David Alan Gilbert,
Cole Robinson, Paolo Bonzini, David Gibson
On Wed, 20 Nov 2019 18:09:55 +0100
Laurent Vivier <lvivier@redhat.com> wrote:
> On ppc64, migration-test only works with kvm_hv, and we already
> have a check to verify the module is loaded.
>
> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
> but on some systems (like build systems) /dev/kvm can be missing
> (by administrators choice).
>
> And as kvm_hv exists test-migration is started but QEMU falls back to
> TCG because it cannot be used:
>
> Could not access KVM kernel module: No such file or directory
> failed to initialize KVM: No such file or directory
> Back to tcg accelerator
>
> And as the test is done with TCG, it fails.
>
> As for s390x, we must check for the existence and the access rights
> of /dev/kvm.
>
> Reported-by: Cole Robinson <crobinso@redhat.com>
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> ---
Reviewed-by: Greg Kurz <groug@kaod.org>
> tests/migration-test.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/migration-test.c b/tests/migration-test.c
> index ac780dffdaad..2b25ba6d77f6 100644
> --- a/tests/migration-test.c
> +++ b/tests/migration-test.c
> @@ -1349,7 +1349,8 @@ int main(int argc, char **argv)
> * some reason)
> */
> if (g_str_equal(qtest_get_arch(), "ppc64") &&
> - access("/sys/module/kvm_hv", F_OK)) {
> + (access("/sys/module/kvm_hv", F_OK) ||
> + access("/dev/kvm", R_OK | W_OK))) {
> g_test_message("Skipping test: kvm_hv not available");
> return g_test_run();
> }
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-20 17:09 [PATCH] pseries: disable migration-test if /dev/kvm cannot be used Laurent Vivier
2019-11-20 17:40 ` Thomas Huth
2019-11-20 18:33 ` Greg Kurz
@ 2019-11-21 7:18 ` Juan Quintela
2019-11-21 8:08 ` Laurent Vivier
2 siblings, 1 reply; 8+ messages in thread
From: Juan Quintela @ 2019-11-21 7:18 UTC (permalink / raw)
To: Laurent Vivier
Cc: Thomas Huth, qemu-devel, Dr. David Alan Gilbert, Cole Robinson,
Paolo Bonzini, David Gibson
Laurent Vivier <lvivier@redhat.com> wrote:
> On ppc64, migration-test only works with kvm_hv, and we already
> have a check to verify the module is loaded.
>
> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
> but on some systems (like build systems) /dev/kvm can be missing
> (by administrators choice).
>
> And as kvm_hv exists test-migration is started but QEMU falls back to
> TCG because it cannot be used:
>
> Could not access KVM kernel module: No such file or directory
> failed to initialize KVM: No such file or directory
> Back to tcg accelerator
>
> And as the test is done with TCG, it fails.
>
> As for s390x, we must check for the existence and the access rights
> of /dev/kvm.
>
> Reported-by: Cole Robinson <crobinso@redhat.com>
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Oh, why it is so difficult!!!
Thanks, Juan.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-21 7:18 ` Juan Quintela
@ 2019-11-21 8:08 ` Laurent Vivier
2019-11-21 8:30 ` Juan Quintela
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Vivier @ 2019-11-21 8:08 UTC (permalink / raw)
To: David Gibson
Cc: Thomas Huth, quintela, qemu-devel, Dr. David Alan Gilbert,
Cole Robinson, Paolo Bonzini
On 21/11/2019 08:18, Juan Quintela wrote:
> Laurent Vivier <lvivier@redhat.com> wrote:
>> On ppc64, migration-test only works with kvm_hv, and we already
>> have a check to verify the module is loaded.
>>
>> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
>> but on some systems (like build systems) /dev/kvm can be missing
>> (by administrators choice).
>>
>> And as kvm_hv exists test-migration is started but QEMU falls back to
>> TCG because it cannot be used:
>>
>> Could not access KVM kernel module: No such file or directory
>> failed to initialize KVM: No such file or directory
>> Back to tcg accelerator
>>
>> And as the test is done with TCG, it fails.
>>
>> As for s390x, we must check for the existence and the access rights
>> of /dev/kvm.
>>
>> Reported-by: Cole Robinson <crobinso@redhat.com>
>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>
> Reviewed-by: Juan Quintela <quintela@redhat.com>
>
> Oh, why it is so difficult!!!
>
> Thanks, Juan.
>
David,
could you add this one too to your ppc-for-4.2 queue?
Thanks,
Laurent
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-21 8:08 ` Laurent Vivier
@ 2019-11-21 8:30 ` Juan Quintela
2019-11-21 9:48 ` David Gibson
2019-11-26 17:49 ` Laurent Vivier
0 siblings, 2 replies; 8+ messages in thread
From: Juan Quintela @ 2019-11-21 8:30 UTC (permalink / raw)
To: Laurent Vivier
Cc: Thomas Huth, qemu-devel, Dr. David Alan Gilbert, Cole Robinson,
Paolo Bonzini, David Gibson
Laurent Vivier <lvivier@redhat.com> wrote:
> On 21/11/2019 08:18, Juan Quintela wrote:
>> Laurent Vivier <lvivier@redhat.com> wrote:
>>> On ppc64, migration-test only works with kvm_hv, and we already
>>> have a check to verify the module is loaded.
>>>
>>> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
>>> but on some systems (like build systems) /dev/kvm can be missing
>>> (by administrators choice).
>>>
>>> And as kvm_hv exists test-migration is started but QEMU falls back to
>>> TCG because it cannot be used:
>>>
>>> Could not access KVM kernel module: No such file or directory
>>> failed to initialize KVM: No such file or directory
>>> Back to tcg accelerator
>>>
>>> And as the test is done with TCG, it fails.
>>>
>>> As for s390x, we must check for the existence and the access rights
>>> of /dev/kvm.
>>>
>>> Reported-by: Cole Robinson <crobinso@redhat.com>
>>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>>
>> Reviewed-by: Juan Quintela <quintela@redhat.com>
>>
>> Oh, why it is so difficult!!!
>>
>> Thanks, Juan.
>>
>
> David,
>
> could you add this one too to your ppc-for-4.2 queue?
I was about to ask if you preffered it to go through the migration tree.
David?
Later, Juan.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-21 8:30 ` Juan Quintela
@ 2019-11-21 9:48 ` David Gibson
2019-11-26 17:49 ` Laurent Vivier
1 sibling, 0 replies; 8+ messages in thread
From: David Gibson @ 2019-11-21 9:48 UTC (permalink / raw)
To: Juan Quintela
Cc: Laurent Vivier, Thomas Huth, qemu-devel, Dr. David Alan Gilbert,
Cole Robinson, Paolo Bonzini
[-- Attachment #1: Type: text/plain, Size: 1670 bytes --]
On Thu, Nov 21, 2019 at 09:30:27AM +0100, Juan Quintela wrote:
> Laurent Vivier <lvivier@redhat.com> wrote:
> > On 21/11/2019 08:18, Juan Quintela wrote:
> >> Laurent Vivier <lvivier@redhat.com> wrote:
> >>> On ppc64, migration-test only works with kvm_hv, and we already
> >>> have a check to verify the module is loaded.
> >>>
> >>> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
> >>> but on some systems (like build systems) /dev/kvm can be missing
> >>> (by administrators choice).
> >>>
> >>> And as kvm_hv exists test-migration is started but QEMU falls back to
> >>> TCG because it cannot be used:
> >>>
> >>> Could not access KVM kernel module: No such file or directory
> >>> failed to initialize KVM: No such file or directory
> >>> Back to tcg accelerator
> >>>
> >>> And as the test is done with TCG, it fails.
> >>>
> >>> As for s390x, we must check for the existence and the access rights
> >>> of /dev/kvm.
> >>>
> >>> Reported-by: Cole Robinson <crobinso@redhat.com>
> >>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> >>
> >> Reviewed-by: Juan Quintela <quintela@redhat.com>
> >>
> >> Oh, why it is so difficult!!!
> >>
> >> Thanks, Juan.
> >>
> >
> > David,
> >
> > could you add this one too to your ppc-for-4.2 queue?
>
> I was about to ask if you preffered it to go through the migration tree.
>
> David?
Migration tree is good for me.
>
> Later, Juan.
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pseries: disable migration-test if /dev/kvm cannot be used
2019-11-21 8:30 ` Juan Quintela
2019-11-21 9:48 ` David Gibson
@ 2019-11-26 17:49 ` Laurent Vivier
1 sibling, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-11-26 17:49 UTC (permalink / raw)
To: quintela, Laurent Vivier
Cc: Thomas Huth, qemu-devel, Dr. David Alan Gilbert, Cole Robinson,
Paolo Bonzini, David Gibson
Le 21/11/2019 à 09:30, Juan Quintela a écrit :
> Laurent Vivier <lvivier@redhat.com> wrote:
>> On 21/11/2019 08:18, Juan Quintela wrote:
>>> Laurent Vivier <lvivier@redhat.com> wrote:
>>>> On ppc64, migration-test only works with kvm_hv, and we already
>>>> have a check to verify the module is loaded.
>>>>
>>>> kvm_hv module can be loaded in memory and /sys/module/kvm_hv exists,
>>>> but on some systems (like build systems) /dev/kvm can be missing
>>>> (by administrators choice).
>>>>
>>>> And as kvm_hv exists test-migration is started but QEMU falls back to
>>>> TCG because it cannot be used:
>>>>
>>>> Could not access KVM kernel module: No such file or directory
>>>> failed to initialize KVM: No such file or directory
>>>> Back to tcg accelerator
>>>>
>>>> And as the test is done with TCG, it fails.
>>>>
>>>> As for s390x, we must check for the existence and the access rights
>>>> of /dev/kvm.
>>>>
>>>> Reported-by: Cole Robinson <crobinso@redhat.com>
>>>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>>>
>>> Reviewed-by: Juan Quintela <quintela@redhat.com>
>>>
>>> Oh, why it is so difficult!!!
>>>
>>> Thanks, Juan.
>>>
>>
>> David,
>>
>> could you add this one too to your ppc-for-4.2 queue?
>
> I was about to ask if you preffered it to go through the migration tree.
>
> David?
>
> Later, Juan.
Juan, as it's a fix it should go in rc3.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-11-26 17:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-20 17:09 [PATCH] pseries: disable migration-test if /dev/kvm cannot be used Laurent Vivier
2019-11-20 17:40 ` Thomas Huth
2019-11-20 18:33 ` Greg Kurz
2019-11-21 7:18 ` Juan Quintela
2019-11-21 8:08 ` Laurent Vivier
2019-11-21 8:30 ` Juan Quintela
2019-11-21 9:48 ` David Gibson
2019-11-26 17:49 ` Laurent Vivier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).