All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] Changes to 10_linux (based on grub2 1.98) to generate boot 	stanza for Xen hypervisor (fix for bug #30257)
Date: Sun, 27 Jun 2010 16:31:48 +0200	[thread overview]
Message-ID: <4C2760D4.2020200@gmail.com> (raw)
In-Reply-To: <AANLkTikGcCfRrJKl52HvUGT4eTpa78ogOosBpD-1g5BT@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

On 06/26/2010 02:34 AM, Dante Cinco wrote:
>
> I have attached a patch that will add the capability in the 10_linux
> grub2 script to detect and generate boot stanzas in grub.cfg for Xen
> hypervisors (if present). It relies on the presence of
> CONFIG_XEN_DOM0=y to identify dom0 kernels and pairs them with each
> version of the hypervisor that is present. It uses the multiboot
> command for the Xen hypervisor image and the module command for the
> vmlinuz kernel and initrd.img. It also explicitly sources
> /etc/default/grub to define a new Xen-only variable called
> GRUB_CMDLINE_XEN_DEFAULT. The alternative is to export this in
> /usr/sbin/grub-mkconfig like the other GRUB variables. It will also
> generate a boot stanza for the dom0 kernel without the hypervisor (in
> case the hypervisor is broken).
There is a patch on ML already, it has some problems but they are likely
to affect any other approach. I won't even have a look at any
alternative patches unless a good reason for it is given.
>
> There is a GNU GRUB bug filed on this which is bug #30257: 10_linux
> ignores xen hypervisor entries and dom0 kernels.
>
> Here's an example of an actual Xen boot stanza. The dummy=dummy in the
> vmlinuz line is needed due to some bug in GRUB or Xen. Without it, the
> boot will hang or stop and hit the initramfs (BusyBox) prompt.
>
> /boot/grub/grub.cfg:
>
> menuentry 'xen-4.0 osa-dom0 , with Linux 2.6.32.15-xen' --class
> osa-dom0 --class gnu-linux --class gnu --class os {
> recordfail
> insmod lvm
> insmod ext2
> set root='(system-dom0_0)'
> search --no-floppy --fs-uuid --set cc290394-fa2a-4e13-9024-3bc5a5b9215d
> multiboot /boot/xen-4.0.gz  com1=115200,8n1 console=com1 dom0_mem=512M
> dom0_max_vcpus=1 dom0_vcpus_pin=true  iommu=1,passthrough,no-intremap
>  loglvl=all loglvl_guest=all loglevl=10 debug  apic=on
> apic_verbosity=verbose  extra_guest_irqs=80 acpi=force numa=on
> module /boot/vmlinuz-2.6.32.15-xen dummy=dummy
> root=/dev/mapper/system-dom0_0 ro quiet  earlyprintk=xen loglevel=10
> debug acpi=force console=hvc0,115200n8
> module /boot/initrd.img-2.6.32.15-xen
> }
>
> /etc/default/grub:
>
> GRUB_CMDLINE_XEN_DEFAULT=" com1=115200,8n1 console=com1 dom0_mem=512M
> dom0_max_vcpus=1 dom0_vcpus_pin=true  iommu=1,passthrough,no-intremap
>  loglvl=all loglvl_guest=all loglevl=10 debug  apic=on
> apic_verbosity=verbose  extra_guest_irqs=80 acpi=force numa=on"
>
> - Dante Cinco
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

      reply	other threads:[~2010-06-27 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-26  0:34 [PATCH] Changes to 10_linux (based on grub2 1.98) to generate boot stanza for Xen hypervisor (fix for bug #30257) Dante Cinco
2010-06-27 14:31 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]

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=4C2760D4.2020200@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.