From: jim burns <jim_burn@bellsouth.net>
To: xen-devel@lists.xen.org
Subject: Fwd: Openindiana, using -machine pc,accel=xen in qemu
Date: Wed, 21 Sep 2016 18:20:16 -0400 [thread overview]
Message-ID: <2925218.0UPpxnAMxp@insp3847> (raw)
Pls cc me with any replies.
I didn't get any responses in xen-users, so I'm posting here. My use case is
as below, but the jist of it is is the qemu option -machine pc,accel=xen meant
to be usable in standalone qemu, or is it only available from a guest launched
by xl, or libvirtd via libxl? If the latter, are there any plans to make it
available as a standalone qemu option?
Thank you.
---------- Forwarded Message ----------
Subject: Openindiana, using -machine pc,accel=xen in qemu
Date: Thursday, September 1, 2016
From: jim burns <jim_burn@bellsouth.net>
To: xen-users@lists.xen.org
I have not been able to run OpenSolaris / openindiana (OI) in xen. OI is very
sensitive to the -machine parm in qemu. You can get grub to come up with hvm,
and add -v to the kernel line, and see that for -machine xenfv, the messages
stop / hang right after the printing of the cpuid features, and just before
pci bus enumeration. Qemu's -machine q35 is not much better. After the cpuid
features, it complains that the usb controllers ohci / ehci are unusable (no
SOF? Interrupts), enumerates the keyboard, then hangs. The next messages
should be about the usb mouse, and pci devices.
Awhile back, Jun 2013, patches were discussed in xen-devel to add an accel=
parm to the -machine type. I can use -machine pc,accel=kvm:tcg in stand alone
qemu. Booting under xen, there is no kvm, so the slow tcg emulation is chosen,
but it works. I can reboot bare-metal, and and kvm works marvelously, but I
have other guests I want to run under xen.
If I use accel=xen:kvm:tcg, and start my stand alone qemu OI guest as an
unpriviledged user, it complains about not having access to a priviledged
interface (xenpriv?), but other wise goes on to reject kvm, and pick tcg - no
surprise since you need root access to run xl, so why would stand alone qemu
work? However, when I do run as root, I get the following error:
failed to get HVM_PARAM_IOREQ_PFN
qemu-system-x86_64: failed to get ioreq server info: error 22
handle=0x562306ea5680
qemu-system-x86_64: xen hardware virtual machine initialisation failed
and then aborts, w/o going on to check kvm or tcg. Any ideas on where the
error is, how to correct? Any other parms needed in qemu? I've checked the
qemu-discuss and xen lists. There was one suggestion to use
'xen_platform_pci=0' in your xen cfg, which changes the -machine from xenfv to
pc,accel=xen, but the xen guest just aborts in the same place it was hanging
before. Hence, I'm trying to just use stand alone qemu.
Thx.
-----------------------------------------------------
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2016-09-21 22:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 22:20 jim burns [this message]
2016-09-22 11:22 ` Fwd: Openindiana, using -machine pc, accel=xen in qemu Anthony PERARD
2016-09-22 14:37 ` jim burns
2016-09-26 11:32 ` Anthony PERARD
2016-09-26 15:02 ` jim burns
2016-09-26 16:21 ` Anthony PERARD
2016-09-26 19:27 ` jim burns
2016-10-05 18:46 ` Fwd: Openindiana, using -machine pc, accel=xen in qemu - Success! jim burns
[not found] ` <339333DD-C225-4648-98A5-68A7F75496D9@netgate.net>
2016-10-05 19:21 ` [Xen-users] " jim burns
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2925218.0UPpxnAMxp@insp3847 \
--to=jim_burn@bellsouth.net \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).