<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/lguest/core.c, branch linux-3.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-06-09T17:43:52Z</updated>
<entry>
<title>lguest: fix out-by-one error in address checking.</title>
<updated>2015-06-09T17:43:52Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2015-05-27T01:29:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4941509f057cc50ba8420ac5f5e6ffdf8715c02a'/>
<id>urn:sha1:4941509f057cc50ba8420ac5f5e6ffdf8715c02a</id>
<content type='text'>
[ Upstream commit 83a35114d0e4583e6b0ca39502e68b6a92e2910c ]

This bug has been there since day 1; addresses in the top guest physical
page weren't considered valid.  You could map that page (the check in
check_gpte() is correct), but if a guest tried to put a pagetable there
we'd check that address manually when walking it, and kill the guest.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm/vmalloc.c: clean up map_vm_area third argument</title>
<updated>2014-08-07T01:01:19Z</updated>
<author>
<name>WANG Chao</name>
</author>
<published>2014-08-06T23:06:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f6f8ed47353597dcb895eb4a15a28af657392e72'/>
<id>urn:sha1:f6f8ed47353597dcb895eb4a15a28af657392e72</id>
<content type='text'>
Currently map_vm_area() takes (struct page *** pages) as third argument,
and after mapping, it moves (*pages) to point to (*pages +
nr_mappped_pages).

It looks like this kind of increment is useless to its caller these
days.  The callers don't care about the increments and actually they're
trying to avoid this by passing another copy to map_vm_area().

The caller can always guarantee all the pages can be mapped into vm_area
as specified in first argument and the caller only cares about whether
map_vm_area() fails or not.

This patch cleans up the pointer movement in map_vm_area() and updates
its callers accordingly.

Signed-off-by: WANG Chao &lt;chaowang@redhat.com&gt;
Cc: Zhang Yanfei &lt;zhangyanfei@cn.fujitsu.com&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: Minchan Kim &lt;minchan@kernel.org&gt;
Cc: Nitin Gupta &lt;ngupta@vflare.org&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>lguest: map Switcher below fixmap.</title>
<updated>2013-04-22T06:15:03Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2013-04-22T04:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b39271746de131366a14bcf04f5740cdc4abdef'/>
<id>urn:sha1:6b39271746de131366a14bcf04f5740cdc4abdef</id>
<content type='text'>
Now we've adjusted all the code, we can simply set switcher_addr to
wherever it needs to go below the fixmaps, rather than asserting that
it should be so.

With large NR_CPUS and PAE, people were hitting the "mapping switcher
would thwack fixmap" message.

Reported-by: Paul Bolle &lt;pebolle@tiscali.nl&gt;
Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: don't share Switcher PTE pages between guests.</title>
<updated>2013-04-22T06:15:01Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2013-04-22T04:40:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3412b6ae2924e068f9932f841bdea0f2d8424502'/>
<id>urn:sha1:3412b6ae2924e068f9932f841bdea0f2d8424502</id>
<content type='text'>
We currently use the whole top PGD entry for the switcher, so we
simply share a fixed page of PTEs between all guests (actually, it's
one per Host CPU, to ensure isolation between guests).

Changes to a scheme where every guest has its own mappings.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: expost switcher_pages array (as lg_switcher_pages).</title>
<updated>2013-04-22T06:15:00Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2013-04-22T04:40:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1f394b1c33d93416c90f97e201d4d386c04af55'/>
<id>urn:sha1:f1f394b1c33d93416c90f97e201d4d386c04af55</id>
<content type='text'>
We will need this in page_table.c soon.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: assume Switcher text is a single page.</title>
<updated>2013-04-22T06:01:36Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2013-04-22T04:40:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=93a2cdff98243df06bafd3c4f3b31b38f0d0fe3e'/>
<id>urn:sha1:93a2cdff98243df06bafd3c4f3b31b38f0d0fe3e</id>
<content type='text'>
ie. SHARED_SWITCHER_PAGES == 1.  It is well under a page, and it's a
minor simplification: it's nice to have *one* simplification in a
patch series!

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: rename switcher_page to switcher_pages.</title>
<updated>2013-04-22T06:01:35Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2013-04-22T04:40:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=856c608827928d29f80605e85fc3f8f0ab3af4fb'/>
<id>urn:sha1:856c608827928d29f80605e85fc3f8f0ab3af4fb</id>
<content type='text'>
There is a single page with the Switcher in it, but it's followed by 2
pages per Host CPU.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: prepare to make SWITCHER_ADDR a variable.</title>
<updated>2013-04-22T06:01:33Z</updated>
<author>
<name>Rusty Russell</name>
</author>
<published>2013-04-22T04:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=406a590ba105bfb7b67952f0a5f948e0d374e03e'/>
<id>urn:sha1:406a590ba105bfb7b67952f0a5f948e0d374e03e</id>
<content type='text'>
We currently use the whole top PGD entry for the switcher, but that's
hitting the fixmap in some configurations (mainly, large NR_CPUS).
Introduce a variable, currently set to the constant.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: fix typo</title>
<updated>2012-12-18T04:49:06Z</updated>
<author>
<name>Alex Russell</name>
</author>
<published>2012-10-16T13:26:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=681f206611aaec4fc8be93d609148e02c704b91d'/>
<id>urn:sha1:681f206611aaec4fc8be93d609148e02c704b91d</id>
<content type='text'>
Signed-off-by: Alex Russell &lt;giles.alex@hotmail.com&gt;
Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
<entry>
<title>lguest: move process freezing before pending signals check</title>
<updated>2011-10-27T00:26:18Z</updated>
<author>
<name>Michal Hocko</name>
</author>
<published>2011-09-27T06:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0acf00014bcfd71090c3b0d43c98e970108064e4'/>
<id>urn:sha1:0acf00014bcfd71090c3b0d43c98e970108064e4</id>
<content type='text'>
run_guest tries to freeze the current process after it has handled
pending interrupts and before it calls lguest_arch_run_guest.
This doesn't work nicely if the task has been killed while being frozen
and when we want to handle that signal as soon as possible.
Let's move try_to_freeze before we check for pending signal so that we
can get out of the loop as soon as possible.

Signed-off-by: Michal Hocko &lt;mhocko@suse.cz&gt;
Acked-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
</content>
</entry>
</feed>
