Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304101 Details for
Bug 444578
kvm: support booting from virtio drives using -kernel
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0001-kvm-qemu-Allow-booting-from-extboot-drive-with-ke.patch
0001-kvm-qemu-Allow-booting-from-extboot-drive-with-ke.patch (text/plain), 1.20 KB, created by
Mark McLoughlin
on 2008-04-29 10:48:45 UTC
(
hide
)
Description:
0001-kvm-qemu-Allow-booting-from-extboot-drive-with-ke.patch
Filename:
MIME Type:
Creator:
Mark McLoughlin
Created:
2008-04-29 10:48:45 UTC
Size:
1.20 KB
patch
obsolete
>From 6fe1fdc57802c699022d3b54920a435daabef969 Mon Sep 17 00:00:00 2001 >From: Mark McLoughlin <markmc@redhat.com> >Date: Tue, 29 Apr 2008 11:30:42 +0100 >Subject: [PATCH] kvm: qemu: Allow booting from extboot drive with -kernel > >The -kernel option generates a new boot sector for >the boot drive which jumps directly to the supplied >kernel rather than running the standard bootloader. > >Trivially fix generate_bootsect() to handle the >case where we're booting using extboot. > >Signed-off-by: Mark McLoughlin <markmc@redhat.com> >--- > qemu/hw/pc.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c >index 48a36e0..506ef6b 100644 >--- a/qemu/hw/pc.c >+++ b/qemu/hw/pc.c >@@ -405,11 +405,12 @@ static void generate_bootsect(uint32_t gpr[8], uint16_t segs[6], uint16_t ip) > { > uint8_t bootsect[512], *p; > int i; >- int hda; >+ int hda = extboot_drive; > >- hda = drive_get_index(IF_IDE, 0, 0); >+ if (hda == -1) >+ hda = drive_get_index(IF_IDE, 0, 0); > if (hda == -1) { >- fprintf(stderr, "A disk image must be given for 'hda' when booting " >+ fprintf(stderr, "-hda or -drive boot=on must be given when booting " > "a Linux kernel\n"); > exit(1); > } >-- >1.5.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 444578
: 304101