Re: [PATCH v3 1/9] Documentation: Introduce EPT based Subpage Protection

2019-06-09 Thread Jidong Xiao
On Fri, Jun 7, 2019 at 7:12 AM Yang Weijiang wrote: > > On Thu, Jun 06, 2019 at 09:57:00PM -0600, Jidong Xiao wrote: > > Hi, Weijiang, > > > > Does this require some specific Intel processors or is it supported by > > older processors as well? > > > >

Re: [PATCH v3 1/9] Documentation: Introduce EPT based Subpage Protection

2019-06-06 Thread Jidong Xiao
Hi, Weijiang, Does this require some specific Intel processors or is it supported by older processors as well? -Jidong On Thu, Jun 6, 2019 at 9:33 AM Yang Weijiang wrote: > > Signed-off-by: Yang Weijiang > --- > Documentation/virtual/kvm/spp_kvm.txt | 216 ++ > 1 file

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Jidong Xiao
On Wed, Jul 2, 2014 at 2:14 PM, wrote: > From: Kan Liang > > x86, perf: Protect LBR and offcore rsp against KVM lying > > With -cpu host, KVM reports LBR and offcore support, if the host has support. > When the guest perf driver tries to access LBR or offcore_rsp MSR, > it #GPs all MSR

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Jidong Xiao
On Wed, Jul 2, 2014 at 2:14 PM, kan.li...@intel.com wrote: From: Kan Liang kan.li...@intel.com x86, perf: Protect LBR and offcore rsp against KVM lying With -cpu host, KVM reports LBR and offcore support, if the host has support. When the guest perf driver tries to access LBR or offcore_rsp

Re: Is heap_stack_gap useless?

2014-04-29 Thread Jidong Xiao
Resend to kernel-development list. The original email wasn't plaintext mode and was rejected by kernel-development list. On Tue, Apr 29, 2014 at 11:31 PM, Jidong Xiao wrote: > Hi, > > I noticed this variable, defined in mm/nommu.c, > > mm/nommu.c:int heap_stack_gap = 0; > &g

Re: Is heap_stack_gap useless?

2014-04-29 Thread Jidong Xiao
Resend to kernel-development list. The original email wasn't plaintext mode and was rejected by kernel-development list. On Tue, Apr 29, 2014 at 11:31 PM, Jidong Xiao jidong.x...@gmail.com wrote: Hi, I noticed this variable, defined in mm/nommu.c, mm/nommu.c:int heap_stack_gap = 0

Question about the fallocate system call

2012-07-26 Thread Jidong Xiao
Hi, I just have a simple question about fallocate. I want to test the punch hole function of fallocate(). So I wrote such a simple program: yosemite:/mnt # cat test.c #include #include #include #include #include #include int main(void) { int fd; fd = open("testfile",

Question about the fallocate system call

2012-07-26 Thread Jidong Xiao
Hi, I just have a simple question about fallocate. I want to test the punch hole function of fallocate(). So I wrote such a simple program: yosemite:/mnt # cat test.c #include fcntl.h #include errno.h #include stdio.h #include stdint.h #include linux/fs.h #include linux/falloc.h int main(void)

Question about set_intr_gate_ist()

2008-01-20 Thread jidong xiao
Hi, I know there is set_intr_gate(n,addr) which is used to insert an interrupt gate in the n th IDT entry. But I don't know what the usage of set_intr_gate_ist()? Take the code below for example, static inline void set_intr_gate_ist(int nr, void *func, unsigned ist) {

Question about set_intr_gate_ist()

2008-01-20 Thread jidong xiao
Hi, I know there is set_intr_gate(n,addr) which is used to insert an interrupt gate in the n th IDT entry. But I don't know what the usage of set_intr_gate_ist()? Take the code below for example, static inline void set_intr_gate_ist(int nr, void *func, unsigned ist) {

Re: What does "ordering by draining" mean?

2007-12-27 Thread jidong xiao
On Dec 10, 2007 6:37 PM, Jens Axboe <[EMAIL PROTECTED]> wrote: > > On Mon, Dec 10 2007, jidong xiao wrote: > > Hi, > > > > I am reading the source code of block I/O layer, and now seeing there > > saying "ordering by draining" or "orderi

Re: What does ordering by draining mean?

2007-12-27 Thread jidong xiao
On Dec 10, 2007 6:37 PM, Jens Axboe [EMAIL PROTECTED] wrote: On Mon, Dec 10 2007, jidong xiao wrote: Hi, I am reading the source code of block I/O layer, and now seeing there saying ordering by draining or ordering by tag in include/blkdev.h,and the comments in that file says

What does "ordering by draining" mean?

2007-12-10 Thread jidong xiao
Hi, I am reading the source code of block I/O layer, and now seeing there saying "ordering by draining" or "ordering by tag" in include/blkdev.h,and the comments in that file says: "Hardbarrier is supported with one of the following methods", but what do these two methods exactly mean? Thanks

What does ordering by draining mean?

2007-12-10 Thread jidong xiao
Hi, I am reading the source code of block I/O layer, and now seeing there saying ordering by draining or ordering by tag in include/blkdev.h,and the comments in that file says: Hardbarrier is supported with one of the following methods, but what do these two methods exactly mean? Thanks Regards

Question about PF_NOFREEZE

2007-08-09 Thread jidong xiao
if one thread set its current->flag with PF_NOFREEZE, then it means this thread is unfreezable,does this mean, when the system entered into a suspended state, even though all the other threads have already gone sleep, this thread still keeps awaken? One thing I am very confused is, if all the

Re: What does 'if EMBEDDED' mean?

2007-08-09 Thread jidong xiao
On 8/9/07, Adrian Bunk <[EMAIL PROTECTED]> wrote: > > Say "y" at > General setup >Configure standard kernel features (for small systems) > > cu > Adrian > Thank you, Adrian, it's very clear. By the way, can sysfs be compiled as a module?Does bool type mean this option cannot be compiled as

What does 'if EMBEDDED' mean?

2007-08-09 Thread jidong xiao
For example, config SYSFS bool "sysfs file system support" if EMBEDDED default y What does 'if EMBEDDED' mean?Can I choose n here? I saw there is no corresponding option within `make menuconfig`, so I am wondering what can I do if I wanna to disable this option, directly change

Re: Question on IS_ERR

2007-08-09 Thread jidong xiao
On 8/9/07, H. Peter Anvin <[EMAIL PROTECTED]> wrote: > > No. There is no requirement that the pointer is page-aligned. The last > page of the address space is (in the Linux kernel) invalid by > definition, so there are in effect three kinds of pointers in the Linux > kernel: valid pointers,

Re: Question on IS_ERR

2007-08-09 Thread jidong xiao
On 8/9/07, H. Peter Anvin [EMAIL PROTECTED] wrote: No. There is no requirement that the pointer is page-aligned. The last page of the address space is (in the Linux kernel) invalid by definition, so there are in effect three kinds of pointers in the Linux kernel: valid pointers, NULL, and

What does 'if EMBEDDED' mean?

2007-08-09 Thread jidong xiao
For example, config SYSFS bool sysfs file system support if EMBEDDED default y What does 'if EMBEDDED' mean?Can I choose n here? I saw there is no corresponding option within `make menuconfig`, so I am wondering what can I do if I wanna to disable this option, directly change

Re: What does 'if EMBEDDED' mean?

2007-08-09 Thread jidong xiao
On 8/9/07, Adrian Bunk [EMAIL PROTECTED] wrote: Say y at General setup Configure standard kernel features (for small systems) cu Adrian Thank you, Adrian, it's very clear. By the way, can sysfs be compiled as a module?Does bool type mean this option cannot be compiled as a module?

Question about PF_NOFREEZE

2007-08-09 Thread jidong xiao
if one thread set its current-flag with PF_NOFREEZE, then it means this thread is unfreezable,does this mean, when the system entered into a suspended state, even though all the other threads have already gone sleep, this thread still keeps awaken? One thing I am very confused is, if all the

Question on IS_ERR

2007-08-08 Thread jidong xiao
I saw we call IS_ERR(ptr) after executing kthread_run() each time. But we don't need to call IS_ERR(ptr) after kmalloc(). My understanding is, the kernel pointer ptr for IS_ERR to check should be page aligned, so its kernel address should be less than 0xf000(or 0x f000, 64bits),

Question on IS_ERR

2007-08-08 Thread jidong xiao
I saw we call IS_ERR(ptr) after executing kthread_run() each time. But we don't need to call IS_ERR(ptr) after kmalloc(). My understanding is, the kernel pointer ptr for IS_ERR to check should be page aligned, so its kernel address should be less than 0xf000(or 0x f000, 64bits),

what does early parameter mean?

2007-07-27 Thread jidong xiao
I saw there are some functions do_early_param/parse_early_param,seems they are supporting for early parameters,but what are early parameters?and how they are used? Regards Jason - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED]

what does early parameter mean?

2007-07-27 Thread jidong xiao
I saw there are some functions do_early_param/parse_early_param,seems they are supporting for early parameters,but what are early parameters?and how they are used? Regards Jason - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED]

Re: What's does KPROBE_ENTRY mean?

2007-07-26 Thread jidong xiao
007 at 01:43:10PM +0800, jidong xiao wrote: > > Anyone can help this? > > > > On 6/21/07, jidong xiao <[EMAIL PROTECTED]> wrote: > > > I searched in linux kernel 2.6.10, didn't find it, then I tried > > > 2.6.20, it is there. But I am not familiar with ass

Re: What's does KPROBE_ENTRY mean?

2007-07-26 Thread jidong xiao
:10PM +0800, jidong xiao wrote: Anyone can help this? On 6/21/07, jidong xiao [EMAIL PROTECTED] wrote: I searched in linux kernel 2.6.10, didn't find it, then I tried 2.6.20, it is there. But I am not familiar with assembly language, so can anybody kindly explain it, I don't know

Re: What's does KPROBE_ENTRY mean?

2007-07-25 Thread jidong xiao
Anyone can help this? On 6/21/07, jidong xiao <[EMAIL PROTECTED]> wrote: > I searched in linux kernel 2.6.10, didn't find it, then I tried > 2.6.20, it is there. But I am not familiar with assembly language, so > can anybody kindly explain it, I don't know the difference between

Re: What's does KPROBE_ENTRY mean?

2007-07-25 Thread jidong xiao
Anyone can help this? On 6/21/07, jidong xiao [EMAIL PROTECTED] wrote: I searched in linux kernel 2.6.10, didn't find it, then I tried 2.6.20, it is there. But I am not familiar with assembly language, so can anybody kindly explain it, I don't know the difference between KPROBE_ENTRY

What does irq_canonicalize mean?

2007-07-23 Thread jidong xiao
I found this function, inside include/asm-i386/irq.h or include/asm-x86_64/irq.h, static __inline__ int irq_canonicalize(int irq) { return ((irq == 2) ? 9 : irq); } there is no comments,so I am totally confused what does this function mean, why there is a "2", and why there is a "9"?

What does irq_canonicalize mean?

2007-07-23 Thread jidong xiao
I found this function, inside include/asm-i386/irq.h or include/asm-x86_64/irq.h, static __inline__ int irq_canonicalize(int irq) { return ((irq == 2) ? 9 : irq); } there is no comments,so I am totally confused what does this function mean, why there is a 2, and why there is a 9?

Is there a linux-serial mail list?

2007-07-22 Thread jidong xiao
and how to subscribe it? Thanks Jason Xiao - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Is there a linux-serial mail list?

2007-07-22 Thread jidong xiao
and how to subscribe it? Thanks Jason Xiao - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

what does select statement mean in Kconfig file?

2007-07-21 Thread jidong xiao
Hi, for example, what does the select statement mean? config SERIAL_SH_SCI_CONSOLE bool "Support for console on SH SCI(F)" depends on SERIAL_SH_SCI=y select SERIAL_CORE_CONSOLE Thanks Jason Xiao - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

what does select statement mean in Kconfig file?

2007-07-21 Thread jidong xiao
Hi, for example, what does the select statement mean? config SERIAL_SH_SCI_CONSOLE bool Support for console on SH SCI(F) depends on SERIAL_SH_SCI=y select SERIAL_CORE_CONSOLE Thanks Jason Xiao - To unsubscribe from this list: send the line unsubscribe linux-kernel in the

[linux-kernel]Why there are so many struct rw_semaphore being defined?

2007-07-04 Thread jidong xiao
I see struct rw_semaphore is defined in include/linux/rwsem-spinlock.h,in the meanwhile, I also can find it in include/asm-**/rwsem.h,for example,include/asm-i386/rwsem.h,include/asm-x86_64/rwsem.h,why?which one should be used? Thanks Jason Xiao - To unsubscribe from this list: send the line

[linux-kernel]Why there are so many struct rw_semaphore being defined?

2007-07-04 Thread jidong xiao
I see struct rw_semaphore is defined in include/linux/rwsem-spinlock.h,in the meanwhile, I also can find it in include/asm-**/rwsem.h,for example,include/asm-i386/rwsem.h,include/asm-x86_64/rwsem.h,why?which one should be used? Thanks Jason Xiao - To unsubscribe from this list: send the line

What's does KPROBE_ENTRY mean?

2007-06-20 Thread jidong xiao
I searched in linux kernel 2.6.10, didn't find it, then I tried 2.6.20, it is there. But I am not familiar with assembly language, so can anybody kindly explain it, I don't know the difference between KPROBE_ENTRY and ENTRY, however, I can find both of these items in some files, such as

What's does KPROBE_ENTRY mean?

2007-06-20 Thread jidong xiao
I searched in linux kernel 2.6.10, didn't find it, then I tried 2.6.20, it is there. But I am not familiar with assembly language, so can anybody kindly explain it, I don't know the difference between KPROBE_ENTRY and ENTRY, however, I can find both of these items in some files, such as

Re: How to printk unsigned long long variable?

2007-06-15 Thread jidong xiao
dma_mask should be a pointer, I mean, the element in struct device, see below, struct device { struct list_head node; /* node in sibling list */ struct list_head bus_list; /* node in bus's list */ struct list_head driver_list; struct list_head

Re: How to printk unsigned long long variable?

2007-06-15 Thread jidong xiao
Thanks all. Is this right? dev->dev.dma_mask = bus->controller->dma_mask; printk(KERN_ERR "hey,jason,see,dma_mask is %llu\n",*(dev->dev.dma_mask)); On 6/15/07, Randy Dunlap <[EMAIL PROTECTED]> wrote: On Fri, 15 Jun 2007 17:04:00 +0200 Vegard Nossum

How to printk unsigned long long variable?

2007-06-15 Thread jidong xiao
For example, typedef unsigned long long u64; u64 *dma_mask; Then how to use printk() to print out a dma_mask variable? Regards Jason Xiao - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

How to printk unsigned long long variable?

2007-06-15 Thread jidong xiao
For example, typedef unsigned long long u64; u64 *dma_mask; Then how to use printk() to print out a dma_mask variable? Regards Jason Xiao - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: How to printk unsigned long long variable?

2007-06-15 Thread jidong xiao
Thanks all. Is this right? dev-dev.dma_mask = bus-controller-dma_mask; printk(KERN_ERR hey,jason,see,dma_mask is %llu\n,*(dev-dev.dma_mask)); On 6/15/07, Randy Dunlap [EMAIL PROTECTED] wrote: On Fri, 15 Jun 2007 17:04:00 +0200 Vegard Nossum wrote: On 6/15/07, jidong xiao [EMAIL

Re: How to printk unsigned long long variable?

2007-06-15 Thread jidong xiao
dma_mask should be a pointer, I mean, the element in struct device, see below, struct device { struct list_head node; /* node in sibling list */ struct list_head bus_list; /* node in bus's list */ struct list_head driver_list; struct list_head

Question about spinlock in linux kernel

2007-06-06 Thread jidong xiao
I found there is such a kernel symbol ".text.lock.spinlock", for example, # cat /proc/kallsyms | grep spinlock 8011e440 T bust_spinlocks 802d00fc t .text.lock.spinlock 8832ae20 d state_spinlock [nfs] but I can not find that who exported such a symbol?I am wondering

Question about spinlock in linux kernel

2007-06-06 Thread jidong xiao
I found there is such a kernel symbol .text.lock.spinlock, for example, # cat /proc/kallsyms | grep spinlock 8011e440 T bust_spinlocks 802d00fc t .text.lock.spinlock 8832ae20 d state_spinlock [nfs] but I can not find that who exported such a symbol?I am wondering