Displaying 20 results from an estimated 55 matches for "unsig".
2011 Mar 14
0
[LLVMdev] How to load a data from the address of unsiged long type
Hi Michael,
> Now I have an address that present in a unsigned long address like the
> following format:
> Value* addr = CONST(0xc0008000)
what is the type of addr? For that matter, what is CONST - what does it do?
Ciao, Duncan.
>
> But I do not know how to read the data from the above addr varaible. I
> tried the following three kind of...
2011 Mar 14
2
[LLVMdev] How to load a data from the address of unsiged long type
Now I have an address that present in a unsigned long address like the
following format:
Value* addr = CONST(0xc0008000)
But I do not know how to read the data from the above addr varaible. I
tried the following three kind of code:
1. Code:
Value* addr = CONST(0xc0008000);
Value* data = new LoadInst(addr, "", false...
2002 Jul 26
6
What tags are allowed in ogg files?
...e, except that two comment tags (and their leading 32 bit integer
describing the tags length) are switched position.
To write the file, i do this:
Bit-by-bit copying all contents of the existing file, until the beginning of
the "Vendor length" integer.
Then I write:
vendorlength (32 bit unsig. int)
vendorstring
comment count (32 bit unsig. int)
comment1 length) 32 bit unsig. int)
comment1 string (fieldname=value)
comment2 length..
..
..
and then I copy the rest of the contents from the existing file.
I've uploaded two sliced ogg files (200 kb each):
http://www.mexp.dk/ogg/test1.ogg...
2007 Feb 14
2
[PATCH 8/8] 2.6.17: scan DMI early
...ad-2007-02-08.orig/arch/i386/mm/ioremap-xen.c 2007-02-08 17:07:13.000000000 +0100
+++ head-2007-02-08/arch/i386/mm/ioremap-xen.c 2007-02-08 17:09:47.000000000 +0100
@@ -374,8 +374,6 @@ void iounmap(volatile void __iomem *addr
}
EXPORT_SYMBOL(iounmap);
-#ifdef __i386__
-
void __init *bt_ioremap(unsigned long phys_addr, unsigned long size)
{
unsigned long offset, last_addr;
@@ -443,5 +441,3 @@ void __init bt_iounmap(void *addr, unsig
--nrpages;
}
}
-
-#endif /* __i386__ */
Index: head-2007-02-08/arch/x86_64/kernel/setup-xen.c
=============================================================...
2013 Sep 23
11
[PATCH v4 0/4] x86/HVM: miscellaneous improvements
The first and third patches are cleaned up versions of an earlier v3
submission by Yang.
1: Nested VMX: check VMX capability before read VMX related MSRs
2: VMX: clean up capability checks
3: Nested VMX: fix IA32_VMX_CR4_FIXED1 msr emulation
4: x86: make hvm_cpuid() tolerate NULL pointers
Signed-off-by: Jan Beulich <jbeulich@suse.com>
2006 Sep 22
0
[XenPPC] Re: [PATCH] Fix BUG in alloc_heap_pages
...> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -r 5418062d2da8 xen/common/page_alloc.c
> --- a/xen/common/page_alloc.c Tue Sep 19 11:26:00 2006 -0500
> +++ b/xen/common/page_alloc.c Thu Sep 21 17:38:41 2006 -0400
> @@ -313,7 +313,7 @@ struct page_info *alloc_heap_pages(unsig
>
> found:
> pg = list_entry(heap[zone][i].next, struct page_info, list);
> - list_del(&pg->list);
> + list_del_init(&pg->list);
>
> /* We may have to halve the chunk a number of times. */
> while ( i != order )
________________________...
2007 Apr 30
0
[PATCH] lguest: properly kill guest userspace programs accessing kernel mem
...rcode))
continue;
/* If lguest_data is NULL, this won't hurt. */
===================================================================
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -216,7 +216,7 @@ void guest_set_pte(struct lguest *lg, un
void guest_set_pte(struct lguest *lg, unsigned long cr3,
unsigned long vaddr, gpte_t val);
void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages);
-int demand_page(struct lguest *info, unsigned long cr2, int write);
+int demand_page(struct lguest *info, unsigned long cr2, int errcode);
void pin_page(struct lguest *...
2007 Apr 30
0
[PATCH] lguest: properly kill guest userspace programs accessing kernel mem
...rcode))
continue;
/* If lguest_data is NULL, this won't hurt. */
===================================================================
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -216,7 +216,7 @@ void guest_set_pte(struct lguest *lg, un
void guest_set_pte(struct lguest *lg, unsigned long cr3,
unsigned long vaddr, gpte_t val);
void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages);
-int demand_page(struct lguest *info, unsigned long cr2, int write);
+int demand_page(struct lguest *info, unsigned long cr2, int errcode);
void pin_page(struct lguest *...
2006 May 17
1
RE: RE: [Xen-changelog] Fix MOVS instruction emulation for HVM MMIO.
...t; >>
> >> diff -r aab3cd33d2ba -r 7fdc4a8b782b xen/arch/x86/hvm/platform.c
> >> --- a/xen/arch/x86/hvm/platform.c Tue May 16 16:34:27 2006 +0100
> >> +++ b/xen/arch/x86/hvm/platform.c Tue May 16 19:50:23 2006 +0100
> >> @@ -865,7 +865,7 @@ void handle_mmio(unsigned long va, unsig
> >> * copy ourself. After this copy succeeds, "rep movs" is
> >> executed
> >> * again.
> >> */
> >> - if ((addr & PAGE_MASK) != ((addr + size - 1) &
> PAGE_MASK)) {
> >...
2005 Feb 19
0
[PATCH] check read/write return values
...5-02-19 11:58:24.000000000 -0500
+++ xen-unstable/tools/libxc/xc_plan9_build.c 2005-02-19 12:02:41.000000000 -0500
@@ -63,6 +63,7 @@
* your image builder.
* Xen guys, nuke this if you wish.
*/
+#if 0 /* NOT CALLED */
void
dumpit(int xc_handle, u32 dom,
int start_page, int tot, unsigned long *page_array)
@@ -85,6 +86,7 @@
munmap(vaddr, PAGE_SIZE);
}
}
+#endif
int
blah(char *b)
{
--- xen-unstable/tools/libxc/xc_private.c.warn2 2005-02-19 12:12:44.000000000 -0500
+++ xen-unstable/tools/libxc/xc_private.c 2005-02-19 12:14:44.000000000 -0500
@@ -276,12 +276,14 @@...
2009 Dec 16
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...ay
> since it is fixed size.
Ok.
> Why is BufferSize needed with the vector? Isn't it always the size of
> BufferArray? Also, why is it signed?
Well, you need it with a new[]'d array. :)
It's signed because running loops with signed induction variables is better
than with unsiged induction variables. In this case it's moot because
::write_impl is passed a size_t anyway.
It's just learned habit by me to make anything having to do with induction
variables signed.
I'll make it unsigned.
> What does DelayOutput do? Even reading the code, I don't reall...
2011 Nov 24
0
[PATCH 6/6] X86: implement PCID/INVPCID for hvm
...INVPCID non-root behavior as vmexit.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
diff -r c61a5ba8c972 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c Tue Nov 22 02:47:51 2011 +0800
+++ b/xen/arch/x86/hvm/hvm.c Tue Nov 22 16:15:19 2011 +0800
@@ -1549,6 +1549,13 @@ int hvm_set_cr0(unsigned long value)
}
else if ( !(value & X86_CR0_PG) && (old_value & X86_CR0_PG) )
{
+ if ( hvm_pcid_enabled(v) )
+ {
+ HVM_DBG_LOG(DBG_LEVEL_1, "Guest attempts to clear CR0.PG "
+ "while CR4.PCIDE=1");
+...
2009 Dec 16
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
....
+ circular_raw_ostream(raw_ostream &Stream, int BufferSize = -1,
+ bool Delete = false)
+ : raw_ostream(/*unbuffered*/true), TheStream(0), DeleteStream(false),
+ BufferArray(BufferSize < 0 ? 8192 : BufferSize),
Please make BufferSize an 'unsigned' and default it to 8192. Please use PRESERVE_STREAM instead of 'false'.
> Do you want another patch that modifies Debug.h and then one more patch that
> shows client use?
Sure, you don't need to convert everything over, but once the general approach looks fine you can...
2013 Oct 10
10
[PATCH 0/4] x86: XSA-67 follow-up
1: correct LDT checks
2: add address validity check to guest_map_l1e()
3: use {rd,wr}{fs,gs}base when available
4: check for canonical address before doing page walks
Signed-off-by: Jan Beulich <jbeulich@suse.com>
2007 Apr 18
1
[Bridge] [PATCH/RFC] Reduce call chain length in netfilter (take 2)
...skb, indev, outdev, okfn, thresh) \
+({int __ret; \
+if (list_empty(&nf_hooks[pf][hook]) || \
+ (__ret=nf_hook_slow(pf, hook, &(skb), indev, outdev, okfn, thresh)) == 1) \
+ __ret = (okfn)(skb); \
+__ret;})
#endif
-int nf_hook_slow(int pf, unsigned int hook, struct sk_buff *skb,
+int nf_hook_slow(int pf, unsigned int hook, struct sk_buff **pskb,
struct net_device *indev, struct net_device *outdev,
int (*okfn)(struct sk_buff *), int thresh);
--- linux-2.6.11-rc3/net/core/netfilter.c.old 2005-02-12 13:48:06.000000000 +0100
+++ linu...
2007 Aug 09
0
[PATCH] x86/hvm: miscellaneous CPUID handling changes
...Index: 2007-08-08/xen/arch/x86/hvm/hvm.c
===================================================================
--- 2007-08-08.orig/xen/arch/x86/hvm/hvm.c 2007-08-06 15:08:40.000000000 +0200
+++ 2007-08-08/xen/arch/x86/hvm/hvm.c 2007-08-08 11:45:25.000000000 +0200
@@ -614,37 +614,38 @@ void hvm_cpuid(unsigned int input, unsig
{
if ( !cpuid_hypervisor_leaves(input, eax, ebx, ecx, edx) )
{
+ struct vcpu *v = current;
+
cpuid(input, eax, ebx, ecx, edx);
- if ( input == 0x00000001 )
+ switch ( input )
{
- struct vcpu *v = current;
-
-...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 08/17] paravirt_ops - memory managment
...gned-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Index: clean-start/arch/x86_64/mm/fault.c
===================================================================
--- clean-start.orig/arch/x86_64/mm/fault.c
+++ clean-start/arch/x86_64/mm/fault.c
@@ -180,7 +180,7 @@ void dump_pagetable(unsigned long addres
pmd_t *pmd;
pte_t *pte;
- asm("movq %%cr3,%0" : "=r" (pgd));
+ pgd = (pgd_t *)read_cr3();
pgd = __va((unsigned long)pgd & PHYSICAL_PAGE_MASK);
pgd += pgd_index(address);
@@ -347,7 +347,7 @@ asmlinkage void __kprobes do_page_fault(
prefetchw(&...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 08/17] paravirt_ops - memory managment
...gned-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Index: clean-start/arch/x86_64/mm/fault.c
===================================================================
--- clean-start.orig/arch/x86_64/mm/fault.c
+++ clean-start/arch/x86_64/mm/fault.c
@@ -180,7 +180,7 @@ void dump_pagetable(unsigned long addres
pmd_t *pmd;
pte_t *pte;
- asm("movq %%cr3,%0" : "=r" (pgd));
+ pgd = (pgd_t *)read_cr3();
pgd = __va((unsigned long)pgd & PHYSICAL_PAGE_MASK);
pgd += pgd_index(address);
@@ -347,7 +347,7 @@ asmlinkage void __kprobes do_page_fault(
prefetchw(&...
2006 Sep 29
0
[PATCH 2/6] xen: add per-node bucks to page allocator
...icense as published by
@@ -34,6 +35,8 @@
#include <xen/keyhandler.h>
#include <xen/perfc.h>
#include <asm/page.h>
+#include <asm/numa.h>
+#include <asm/topology.h>
/*
* Comma-separated list of hexadecimal page numbers containing bad bytes.
@@ -247,22 +250,23 @@ unsigned long alloc_boot_pages(unsigned
#define pfn_dom_zone_type(_pfn) \
(((_pfn) <= MAX_DMADOM_PFN) ? MEMZONE_DMADOM : MEMZONE_DOM)
-static struct list_head heap[NR_ZONES][MAX_ORDER+1];
-
-static unsigned long avail[NR_ZONES];
+static struct list_head heap[NR...
2007 Apr 18
3
[Bridge] Re: do_IRQ: stack overflow: 872..
On Fri, 07 Jan 2005 17:05:59 +0000
David Woodhouse <dwmw2@infradead.org> wrote:
> On Sat, 2004-12-18 at 08:50 +0100, Andi Kleen wrote:
> > It's not really an oops, just a warning that stack space got quiet
> > tight.
> >
> > The problem seems to be that the br netfilter code is nesting far too
> > deeply and recursing several times. Looks like a design