From: Kouya Shimura <kouya@jp.fujitsu.com>
To: xen-devel@lists.xen.org
Subject: [PATCH] x86/hap: Fix memory leak of domain->arch.hvm_domain.dirty_vram
Date: Wed, 28 Nov 2012 15:51:56 +0900 [thread overview]
Message-ID: <50B5B48C.7040804@jp.fujitsu.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 125 bytes --]
This patch fixes the memory leak of domain->arch.hvm_domain.dirty_vram.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
[-- Attachment #2: fix_hap_leak.patch --]
[-- Type: text/x-patch, Size: 457 bytes --]
diff -r 0049de3827bc xen/arch/x86/mm/hap/hap.c
--- a/xen/arch/x86/mm/hap/hap.c Fri Nov 23 11:06:15 2012 +0000
+++ b/xen/arch/x86/mm/hap/hap.c Wed Nov 28 15:21:32 2012 +0900
@@ -567,6 +567,12 @@ void hap_teardown(struct domain *d)
d->arch.paging.mode &= ~PG_log_dirty;
+ if ( d->arch.hvm_domain.dirty_vram )
+ {
+ xfree(d->arch.hvm_domain.dirty_vram);
+ d->arch.hvm_domain.dirty_vram = NULL;
+ }
+
paging_unlock(d);
}
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next reply other threads:[~2012-11-28 6:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 6:51 Kouya Shimura [this message]
2012-11-28 8:39 ` [PATCH] x86/hap: Fix memory leak of domain->arch.hvm_domain.dirty_vram Jan Beulich
2012-11-29 1:00 ` Kouya Shimura
2012-11-29 7:26 ` Jan Beulich
2012-11-29 11:05 ` Tim Deegan
2012-11-29 13:16 ` Jan Beulich
2012-11-29 15:25 ` Tim Deegan
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=50B5B48C.7040804@jp.fujitsu.com \
--to=kouya@jp.fujitsu.com \
--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 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.