qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Cubietruck: cannot create KVM guests: "kvm_init_vcpu failed: Invalid argument"
@ 2014-12-09 10:50 Kashyap Chamarthy
  2014-12-09 10:53 ` Peter Maydell
  2014-12-09 11:25 ` Richard W.M. Jones
  0 siblings, 2 replies; 9+ messages in thread
From: Kashyap Chamarthy @ 2014-12-09 10:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: rjones

Booting a minimal KVM guest throws the below error on Cubietruck:

  "kvm_init_vcpu failed: Invalid argument"

More context and an easy reproducer in this QEMU bug[1] for Fedora.

Context quoting Rich Jones from comment #2:

    "For some reason I thought this had been fixed upstream, but
    now that I've finally got my CT working again, I see that I
    am still carrying that patch in my custom qemu.
    
    diff --git a/target-arm/cpu.c b/target-arm/cpu.c
    index 5ce7350..04d69d1 100644
    --- a/target-arm/cpu.c
    +++ b/target-arm/cpu.c
    @@ -858,7 +858,7 @@ static void cortex_a15_initfn(Object *obj)
         set_feature(&cpu->env, ARM_FEATURE_DUMMY_C15_REGS);
         set_feature(&cpu->env, ARM_FEATURE_CBAR_RO);
         set_feature(&cpu->env, ARM_FEATURE_LPAE);
    -    cpu->kvm_target = QEMU_KVM_ARM_TARGET_CORTEX_A15;
    +    cpu->kvm_target = QEMU_KVM_ARM_TARGET_CORTEX_A7;
         cpu->midr = 0x412fc0f1;
         cpu->reset_fpsid = 0x410430f0;
         cpu->mvfr0 = 0x10110222;
    
    So that's the answer really, it's a qemu bug.  Actually it looks as
    if qemu contains some code to try to get the host CPU type, but it
    doesn't work, or maybe we need to pass a -cpu option ..."



  [1] https://bugzilla.redhat.com/show_bug.cgi?id=1171501 -- Cubietruck:
      cannot create KVM guests: "kvm_init_vcpu failed: Invalid argument"

-- 
/kashyap

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-12-09 16:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 10:50 [Qemu-devel] Cubietruck: cannot create KVM guests: "kvm_init_vcpu failed: Invalid argument" Kashyap Chamarthy
2014-12-09 10:53 ` Peter Maydell
2014-12-09 11:27   ` Richard W.M. Jones
2014-12-09 12:15     ` Kashyap Chamarthy
2014-12-09 16:48     ` Kashyap Chamarthy
2014-12-09 11:25 ` Richard W.M. Jones
2014-12-09 11:42   ` Peter Maydell
2014-12-09 12:33     ` Dr. David Alan Gilbert
2014-12-09 13:48       ` Peter Maydell

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).