mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 02:26:37 +00:00
kernel: add patch and config
Add config file for x86 KVM. Add 9p patch to always use cached inode. fixes #17 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
d0085e8edf
commit
33195f8abd
21
kernel/configs/README.md
Normal file
21
kernel/configs/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
## How to use config files
|
||||
|
||||
config files must be copied in the kernel source code directory and renamed to `.config`
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
cp x86_kata_kvm_4.14.x linux-4.14.22/.config
|
||||
pushd linux-4.14.22
|
||||
make ARCH=x86_64 -j4
|
||||
```
|
||||
|
||||
## How to modify config files
|
||||
|
||||
```
|
||||
cp x86_kata_kvm_4.14.x linux-4.14.22/.config
|
||||
pushd linux-4.14.22
|
||||
make menuconfig
|
||||
popd
|
||||
cp linux-4.14.22/.config x86_kata_kvm_4.14.x
|
||||
```
|
2613
kernel/configs/x86_kata_kvm_4.14.x
Normal file
2613
kernel/configs/x86_kata_kvm_4.14.x
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,47 @@
|
||||
From 0a235af3130a0c40fe2198f18198c7ac4e799a03 Mon Sep 17 00:00:00 2001
|
||||
From: Julio Montes <julio.montes@intel.com>
|
||||
Date: Mon, 18 Sep 2017 11:46:59 -0500
|
||||
Subject: [PATCH 2/3] NO-UPSTREAM: 9P: always use cached inode to fill in
|
||||
v9fs_vfs_getattr
|
||||
|
||||
So that if in cache=none mode, we don't have to lookup server that
|
||||
might not support open-unlink-fstat operation.
|
||||
|
||||
fixes https://github.com/01org/cc-oci-runtime/issues/47
|
||||
fixes https://github.com/01org/cc-oci-runtime/issues/1062
|
||||
|
||||
Signed-off-by: Peng Tao <bergwolf@gmail.com>
|
||||
---
|
||||
fs/9p/vfs_inode.c | 2 +-
|
||||
fs/9p/vfs_inode_dotl.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
|
||||
index bdabb27..30395e0 100644
|
||||
--- a/fs/9p/vfs_inode.c
|
||||
+++ b/fs/9p/vfs_inode.c
|
||||
@@ -1068,7 +1068,7 @@ v9fs_vfs_getattr(const struct path *path, struct kstat *stat,
|
||||
|
||||
p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
|
||||
v9ses = v9fs_dentry2v9ses(dentry);
|
||||
- if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
|
||||
+ if (!d_really_is_negative(dentry) || v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
|
||||
generic_fillattr(d_inode(dentry), stat);
|
||||
return 0;
|
||||
}
|
||||
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
|
||||
index 7f6ae21..5d7e970 100644
|
||||
--- a/fs/9p/vfs_inode_dotl.c
|
||||
+++ b/fs/9p/vfs_inode_dotl.c
|
||||
@@ -481,7 +481,7 @@ v9fs_vfs_getattr_dotl(const struct path *path, struct kstat *stat,
|
||||
|
||||
p9_debug(P9_DEBUG_VFS, "dentry: %p\n", dentry);
|
||||
v9ses = v9fs_dentry2v9ses(dentry);
|
||||
- if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
|
||||
+ if (!d_really_is_negative(dentry) || v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
|
||||
generic_fillattr(d_inode(dentry), stat);
|
||||
return 0;
|
||||
}
|
||||
--
|
||||
2.9.5
|
||||
|
Loading…
Reference in New Issue
Block a user