All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v1 04/13] KVM: s390: move pv gmap functions into kvm
@ 2025-01-10 18:42 kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2025-01-10 18:42 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20250108181451.74383-5-imbrenda@linux.ibm.com>
References: <20250108181451.74383-5-imbrenda@linux.ibm.com>
TO: Claudio Imbrenda <imbrenda@linux.ibm.com>
TO: kvm@vger.kernel.org
CC: linux-s390@vger.kernel.org
CC: frankja@linux.ibm.com
CC: borntraeger@de.ibm.com
CC: schlameuss@linux.ibm.com
CC: david@redhat.com
CC: willy@infradead.org
CC: hca@linux.ibm.com
CC: svens@linux.ibm.com
CC: agordeev@linux.ibm.com
CC: gor@linux.ibm.com
CC: nrb@linux.ibm.com
CC: nsg@linux.ibm.com

Hi Claudio,

kernel test robot noticed the following build warnings:

[auto build test WARNING on s390/features]
[also build test WARNING on kvm/queue kvm/next mst-vhost/linux-next linus/master v6.13-rc6 next-20250110]
[cannot apply to kvms390/next kvm/linux-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Claudio-Imbrenda/KVM-s390-wrapper-for-KVM_BUG/20250109-021808
base:   https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
patch link:    https://lore.kernel.org/r/20250108181451.74383-5-imbrenda%40linux.ibm.com
patch subject: [PATCH v1 04/13] KVM: s390: move pv gmap functions into kvm
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: s390-randconfig-r071-20250110 (https://download.01.org/0day-ci/archive/20250111/202501110214.sqdsgfNV-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202501110214.sqdsgfNV-lkp@intel.com/

smatch warnings:
arch/s390/kernel/uv.c:302 uv_wiggle_folio() warn: missing error code? 'rc'

vim +/rc +302 arch/s390/kernel/uv.c

214d9bbcd3a672 Claudio Imbrenda  2020-01-21  280  
72b1daff2671ce Claudio Imbrenda  2022-06-28  281  /**
0fab98cab07bbe Claudio Imbrenda  2025-01-08  282   * uv_wiggle_folio() - try to drain extra references to a folio
0fab98cab07bbe Claudio Imbrenda  2025-01-08  283   * @folio: the folio
0fab98cab07bbe Claudio Imbrenda  2025-01-08  284   * @split: whether to split a large folio
72b1daff2671ce Claudio Imbrenda  2022-06-28  285   *
0fab98cab07bbe Claudio Imbrenda  2025-01-08  286   * Context: Must be called while holding an extra reference to the folio;
0fab98cab07bbe Claudio Imbrenda  2025-01-08  287   *          the mm lock should not be held.
68ad4743beaa71 David Hildenbrand 2024-05-08  288   */
0fab98cab07bbe Claudio Imbrenda  2025-01-08  289  int uv_wiggle_folio(struct folio *folio, bool split)
68ad4743beaa71 David Hildenbrand 2024-05-08  290  {
214d9bbcd3a672 Claudio Imbrenda  2020-01-21  291  	int rc;
214d9bbcd3a672 Claudio Imbrenda  2020-01-21  292  
0fab98cab07bbe Claudio Imbrenda  2025-01-08  293  	folio_wait_writeback(folio);
0fab98cab07bbe Claudio Imbrenda  2025-01-08  294  	if (split) {
eef88fe45ac978 David Hildenbrand 2024-05-08  295  		folio_lock(folio);
eef88fe45ac978 David Hildenbrand 2024-05-08  296  		rc = split_folio(folio);
eef88fe45ac978 David Hildenbrand 2024-05-08  297  		folio_unlock(folio);
eef88fe45ac978 David Hildenbrand 2024-05-08  298  
0fab98cab07bbe Claudio Imbrenda  2025-01-08  299  		if (rc == -EBUSY)
eef88fe45ac978 David Hildenbrand 2024-05-08  300  			return -EAGAIN;
0fab98cab07bbe Claudio Imbrenda  2025-01-08  301  		if (rc != -EAGAIN)
214d9bbcd3a672 Claudio Imbrenda  2020-01-21 @302  			return rc;
214d9bbcd3a672 Claudio Imbrenda  2020-01-21  303  	}
0fab98cab07bbe Claudio Imbrenda  2025-01-08  304  	lru_add_drain_all();
0fab98cab07bbe Claudio Imbrenda  2025-01-08  305  	return -EAGAIN;
a52c25848e3143 Claudio Imbrenda  2022-06-28  306  }
0fab98cab07bbe Claudio Imbrenda  2025-01-08  307  EXPORT_SYMBOL_GPL(uv_wiggle_folio);
a52c25848e3143 Claudio Imbrenda  2022-06-28  308  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v1 00/13] KVM: s390: Stop using page->index and other things
@ 2025-01-08 18:14 Claudio Imbrenda
  2025-01-08 18:14 ` [PATCH v1 04/13] KVM: s390: move pv gmap functions into kvm Claudio Imbrenda
  0 siblings, 1 reply; 6+ messages in thread
From: Claudio Imbrenda @ 2025-01-08 18:14 UTC (permalink / raw)
  To: kvm
  Cc: linux-s390, frankja, borntraeger, schlameuss, david, willy, hca,
	svens, agordeev, gor, nrb, nsg

This patchseries starts moving some of the gmap logic into KVM itself,
going towards the final goal of completely removing gmap from the
non-kvm memory management code. Aside from just moving some code from
mm/gmap into kvm, this series also starts using __kvm_faultin_pfn() to
fault-in pages as needed.

But more importantly, this series removes almost all uses of
page->index (and all uses of page->lru) from the s390 KVM code.
The only remaining use is for the vsie pages, but that has already been
taken care of by David in another series.

Unfortunately the mix of hastiness and holidays means that this series
is a little bit all over the place, and not as complete as I would have
liked to.

I'm posting it now so to try to speed up the removal of page->index,
hopefully I will be able to post another short series before the
upcoming merge window closes.

Claudio Imbrenda (13):
  KVM: s390: wrapper for KVM_BUG
  KVM: s390: fake memslots for ucontrol VMs
  KVM: s390: use __kvm_faultin_pfn()
  KVM: s390: move pv gmap functions into kvm
  KVM: s390: get rid of gmap_fault()
  KVM: s390: get rid of gmap_translate()
  KVM: s390: move some gmap shadowing functions away from mm/gmap.c
  KVM: s390: stop using page->index for non-shadow gmaps
  KVM: s390: stop using lists to keep track of used dat tables
  KVM: s390: move gmap_shadow_pgt_lookup() into kvm
  KVM: s390: remove useless page->index usage
  KVM: s390: move PGSTE softbits
  KVM: s390: remove the last user of page->index

 arch/s390/include/asm/gmap.h    |  16 +-
 arch/s390/include/asm/pgtable.h |  21 +-
 arch/s390/include/asm/uv.h      |   7 +-
 arch/s390/kernel/uv.c           | 293 +++------------
 arch/s390/kvm/Makefile          |   2 +-
 arch/s390/kvm/gaccess.c         |  42 +++
 arch/s390/kvm/gmap.c            | 183 ++++++++++
 arch/s390/kvm/gmap.h            |  19 +
 arch/s390/kvm/intercept.c       |   5 +-
 arch/s390/kvm/interrupt.c       |  19 +-
 arch/s390/kvm/kvm-s390.c        | 229 ++++++++++--
 arch/s390/kvm/kvm-s390.h        |  18 +
 arch/s390/kvm/pv.c              |   1 +
 arch/s390/kvm/vsie.c            | 137 +++++++
 arch/s390/mm/gmap.c             | 630 ++++++--------------------------
 15 files changed, 786 insertions(+), 836 deletions(-)
 create mode 100644 arch/s390/kvm/gmap.c
 create mode 100644 arch/s390/kvm/gmap.h

-- 
2.47.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-15 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10 18:42 [PATCH v1 04/13] KVM: s390: move pv gmap functions into kvm kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-01-08 18:14 [PATCH v1 00/13] KVM: s390: Stop using page->index and other things Claudio Imbrenda
2025-01-08 18:14 ` [PATCH v1 04/13] KVM: s390: move pv gmap functions into kvm Claudio Imbrenda
2025-01-09 17:42   ` kernel test robot
2025-01-15 12:48   ` Janosch Frank
2025-01-15 12:59     ` Claudio Imbrenda
2025-01-15 13:23       ` Janosch Frank

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.