Displaying 20 results from an estimated 70 matches similar to: "implicit grant unmap hacking [was RE: Grant tables from dom0 userspace?]"
2005 Mar 14
4
[patch/unstable] page table cleanups
Hi,
In many places xen uses "unsigned long" instead of the l*_pgentry_t
types to pass around page table entries. Here is a patch which fixes
this in a number of places (mostly in shadow mode code). Thats what
I''ve trapped in so far, maybe more of these patches follow.
Fixing this is needed for adding PAE support to xen. In PAE paging mode
the page table entries are 64 bit
2006 Jul 26
5
[Fwd: stack overflow "cause" found]
Xen is compiled with no -O gcc option, meaning no optimization, and the
compiler does the safest thing imaginable. This means that if a
function, say vmx_world_save(), calls the same inline a bazillion times,
the stack will have one block of local variables for each invocation of
that function!
Xen really should not be doing this. We could either uninline some of
these functions, or try gcc -O2
2007 Apr 27
1
VMASST_TYPE_writable_pagetables on translated domains?
Isn''t the writeable page table support intended only for non-translated domains?
If so, shouldn''t fixup_page_fault() check for this, or the setting of the assist bit
and the PG_translate be respectively validated? If not, aren''t there bits missing
in ptwr_do_page_fault()?
Jan
_______________________________________________
Xen-devel mailing list
2007 May 14
0
[PATCH] x86: ptwr adjustments
Make sure MFN read from pte is valid before accessing the page info structure
associated with it. Drop guest-to-machine-physical translation from ptwr code.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Index: 2007-05-14/xen/arch/x86/mm.c
===================================================================
--- 2007-05-14.orig/xen/arch/x86/mm.c 2007-05-14 13:43:50.000000000 +0200
+++
2007 May 23
0
Apache CGI Performance Big Degration in Dom0 vs. Native
Hi there,
I ran a test on an Apache server, the workload is a helloworld.c compiled cgi, very simple. OS is SLES 10. The stress tool is ab (apache bench).
The performance looks big degration from native to Dom0:
Running in prefork mode:
Native Dom0
Performance(request/s) 3700 . 650
CPU%
2007 May 23
0
Apache CGI Performance Big Degration in Dom0 vs. Native
Hi there,
I ran a test on an Apache server, the workload is a helloworld.c compiled cgi, very simple. OS is SLES 10. The stress tool is ab (apache bench).
The performance looks big degration from native to Dom0:
Running in prefork mode:
Native Dom0
Performance(request/s) 3700 . 650
CPU%
2005 Sep 01
0
RE: [PATCH] Re: SMP dom0 with 8 cpus of i386
Is this PAE or non-PAE?
Please can you try forceing emulation mode by toggling the "#if 0" in
arch/x86/mm.c ptwr_do_page_fault
The other thing to try is modifying set_pte_pfn_ma to call xen_l1_update
rather than set_pte. You could try set_pte_at too.
This will help narrow down the issue.
Thanks,
Ian
> Keir, Ian,
> With PCI mmconfig option on, and with the PCI express
>
2006 Sep 15
2
Question: how to unmap memory mapped with direct_kernel_remap_pfn_range() ?
Hi,
Xenoprof buffers are mapped into the kernel using
direct_kernel_remap_pfn_range().
I need to unmap the buffer when it is not needed anymore.
However, I could not find any function that unmaps pages previously
mapped with direct_kernel_remap_pfn_range().
Any suggestion on how to do this?
Thanks
Renato
_______________________________________________
Xen-devel mailing list
2006 Feb 14
1
implicit grant unmap
Hello All,
I''m contemplating ways to avoid the domain_crash() in mm.c line ~615
without requiring new OS hooks. This crash occurs when the operating
system writes a zero to the PTE for a grant mapping without an explicit
Xen call to unmap.
In hacking around, it seems the problem is this: When the mapping PTE
gets squashed, Xen''s cleanup_writable_pagetable() has no way to find
2006 Apr 01
2
[PATCH] Implement window zoomin/zoomout on create/unmap
This patch makes windows zoom in and out of a zero point on
create/unmap. I've cleaned up the formatting/style to be consistent with
the rest of compiz (eg adding spaces around operators, tabifying, using
C style comments).
This patch could use some more work. It should only apply to decorated
toplevels, but right now it also affects XUL menus (I guess because they
are not unmanaged like
2019 Sep 06
0
[PATCH] virtio_ring: fix unmap of indirect descriptors
On Fri, Sep 06, 2019 at 02:06:59PM +0200, Matthias Lange wrote:
> The function virtqueue_add_split() DMA-maps the scatterlist buffers. In
> case a mapping error occurs the already mapped buffers must be unmapped.
> This happens by jumping to the 'unmap_release' label.
>
> In case of indirect descriptors the release is wrong and may leak kernel
> memory. Because the
2020 May 13
0
[PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel
On Wed, May 13, 2020 at 01:13:40PM +0200, Borislav Petkov wrote:
> On Tue, Apr 28, 2020 at 05:16:34PM +0200, Joerg Roedel wrote:
> > @@ -302,9 +313,13 @@ void do_boot_page_fault(struct pt_regs *regs, unsigned long error_code)
> > * - User faults
> > * - Reserved bits set
> > */
> > - if (error_code & (X86_PF_PROT | X86_PF_USER | X86_PF_RSVD)) {
>
2020 May 13
1
[PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel
On Wed, May 13, 2020 at 01:30:11PM +0200, Joerg Roedel wrote:
> Yeah, I had this this way in v2, but changed it upon you request[1] :)
Yeah, I was wondering why this isn't a separate function - you like them
so much. :-P
> [1] https://lore.kernel.org/lkml/20200402114941.GA9352 at zn.tnic/
But that one didn't have the ghcb_fault check. Maybe it was being added
later... :)
Thx.
--
2020 Sep 03
0
Fwd: is there a way to set discard=unmap when using guestmount? (#52)
----- Forwarded message from braindevices <notifications@github.com> -----
Subject: [libguestfs/libguestfs] is there a way to set discard=unmap when using
guestmount? (#52)
I cannot find anything in the document. This option is very important for dynamic qcow2 disks. Without out this the IO is super slow even on tmpfs only 3MB/s.
Subject: Re: [libguestfs/libguestfs] is there a way to
2018 May 31
2
Make discard='unmap' the default?
Is it possible to make discard='unmap' the default for virtio-scsi
disks? (Related, is it possible to make virtio-scsi the default disk
type, rather than virtio-blk?)
Thanks!
--
========================================================================
Ian Pilcher arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented
2018 Jun 01
0
Re: Make discard='unmap' the default?
On Thu, May 31, 2018 at 02:34:15PM -0500, Ian Pilcher wrote:
> Is it possible to make discard='unmap' the default for virtio-scsi
> disks? (Related, is it possible to make virtio-scsi the default disk
> type, rather than virtio-blk?)
This is really a question for whatever management tool you're using
with libvirt, since it is essentially defining an opinionated usage policy.
2018 Jun 01
0
Re: Make discard='unmap' the default?
On Fri, Jun 01, 2018 at 07:54:32AM -0500, Ian Pilcher wrote:
> On 06/01/2018 05:19 AM, Daniel P. Berrangé wrote:
> > On Thu, May 31, 2018 at 02:34:15PM -0500, Ian Pilcher wrote:
> > > Is it possible to make discard='unmap' the default for virtio-scsi
> > > disks? (Related, is it possible to make virtio-scsi the default disk
> > > type, rather than
2018 Jun 01
0
Re: Make discard='unmap' the default?
On Fri, Jun 01, 2018 at 08:37:30AM -0500, Ian Pilcher wrote:
> On 06/01/2018 08:14 AM, Daniel P. Berrangé wrote:
> > Yes, it inherits some defaults to libvirt and/or QEMU. If those are not
> > suitable for some reason, then virt-manager needs to override it. The
> > decision about whether to enable discard or not is a policy decision
> > that doesn't have a single
2020 Oct 22
0
Re: Why "discard":"unmap" is the default option for disks
On Thu, Oct 22, 2020 at 10:57:05 +0800, Han Han wrote:
> Hello,
> I find "discard":"unmap" is defaultly enabled in qemu cmdline(libvirt
> v6.6, qemu v5.1):
> XML:
> <disk type="file" device="disk">
> <driver name="qemu" type="qcow2"/>
> <source
2010 Feb 19
2
[PATCH 1/2] drm/nouveau: Unmap pushbuf BOs when we're done with them.
If you're especially unlucky BOs would move around and their kmaps
would end up pointing to something else in GART, then ioctl_pushbuf()
would use the kmaps again corrupting textures or other pushbufs (the
most noticeable symptom was a PFIFO_DMA_PUSHER from time to time).
Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
drivers/gpu/drm/nouveau/nouveau_gem.c | 2 ++
1