public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Glauber de Oliveira Costa
	<glommer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: Fwd: [PATCH] boot a linux kernel from non-ide device
Date: Fri, 08 Feb 2008 10:30:11 -0600	[thread overview]
Message-ID: <47AC8393.6020906@codemonkey.ws> (raw)
In-Reply-To: <5d6222a80802080742t3dfca5bs7894648af5d528a3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

This patch seems reasonable to me.

But FWIW, with extboot, it's possible to implement the -kernel option in 
a saner way.  extboot already has code to take over int19 and load a 
kernel from memory on boot.  It was based on the old -kernel support in 
QEMU (prior to hpa's rewrite) so it's not enabled at the moment.  It 
should be pretty easy to update it though.

This approach would allow -kernel to be used without any disk (which 
also solves your problem, but in a different way).  We can also 
eliminate all the boot sector hijacking silliness.

Regards,

Anthony Liguori

Glauber de Oliveira Costa wrote:
> Reposting to kvm-devel, since aliguori notices that I'm relying on
> non-upstream features of qemu
>
> ---------- Forwarded message ----------
> From: Glauber de Oliveira Costa <glommer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Date: Feb 8, 2008 5:05 AM
> Subject: [PATCH] boot a linux kernel from non-ide device
> To: qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org
>
>
> Since it's now possible to use the -drive option, the test for something
> in the index 0 of the IDE bus is too restrictive.
>
> A better idea, IMHO, is to check if the user specified any bootable device,
> and only if not, fallback to the default, compatible behaviour of checking
> hda regardless of the presence of a boot=on arg.
>
> --
> Glauber de Oliveira Costa.
> "Free as in Freedom"
> http://glommer.net
>
> "The less confident you are, the more serious you have to act."
>
>
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

      parent reply	other threads:[~2008-02-08 16:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5d6222a80802072305t2d536595q97d169df9dc00a48@mail.gmail.com>
     [not found] ` <5d6222a80802072305t2d536595q97d169df9dc00a48-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-02-08 15:42   ` Fwd: [PATCH] boot a linux kernel from non-ide device Glauber de Oliveira Costa
     [not found]     ` <5d6222a80802080742t3dfca5bs7894648af5d528a3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-02-08 16:30       ` Anthony Liguori [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=47AC8393.6020906@codemonkey.ws \
    --to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
    --cc=glommer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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