qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] QEMU-KVM missing bits for E820 handling.
@ 2010-03-09 17:24 Jes Sorensen
  2010-03-11 12:35 ` [Qemu-devel] " Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Jes Sorensen @ 2010-03-09 17:24 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Marcelo Tosatti, Avi Kivity

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

Hi,

This is the last piece needed for QEMU-KVM to match the changes that
went into upstream QEMU.

Cheers,
Jes

[-- Attachment #2: 0011-qemu-kvm-e820-missing-bits.patch --]
[-- Type: text/plain, Size: 849 bytes --]

Use qemu-cfg to provide the BIOS with an optional table of e820 entries.

The missing bits for qemu-kvm.git to match what qemu does.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>

---
 qemu-kvm-x86.c |    7 +++++++
 1 file changed, 7 insertions(+)

Index: qemu-kvm/qemu-kvm-x86.c
===================================================================
--- qemu-kvm.orig/qemu-kvm-x86.c
+++ qemu-kvm/qemu-kvm-x86.c
@@ -37,6 +37,13 @@ int kvm_set_tss_addr(kvm_context_t kvm, 
 {
 #ifdef KVM_CAP_SET_TSS_ADDR
 	int r;
+        /*
+         * Tell fw_cfg to notify the BIOS to reserve the range.
+         */
+        if (e820_add_entry(addr, 0x4000, E820_RESERVED) < 0) {
+            perror("e820_add_entry() table is full");
+            exit(1);
+        }
 
 	r = kvm_ioctl(kvm_state, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR);
 	if (r > 0) {

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

* [Qemu-devel] Re: [PATCH] QEMU-KVM missing bits for E820 handling.
  2010-03-09 17:24 [Qemu-devel] [PATCH] QEMU-KVM missing bits for E820 handling Jes Sorensen
@ 2010-03-11 12:35 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2010-03-11 12:35 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: Marcelo Tosatti, QEMU Developers

On 03/09/2010 07:24 PM, Jes Sorensen wrote:
> Hi,
>
> This is the last piece needed for QEMU-KVM to match the changes that
> went into upstream QEMU.
>

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function

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

end of thread, other threads:[~2010-03-11 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-09 17:24 [Qemu-devel] [PATCH] QEMU-KVM missing bits for E820 handling Jes Sorensen
2010-03-11 12:35 ` [Qemu-devel] " Avi Kivity

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